This method of the ActiveXControl Class retrieves the preferred size of the ActiveXControl object.
public Dimension getPreferredSize();
Returns the preferred width and height of the object, measured in pixels.