Method getPreferredSize()
Return type: java.awt.Dimension
Member of: javax.swing.JEditorPane
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 Dimension s=(Dimension)component.getPreferredSize().clone();
2 super(c.getPreferredSize(),pos);
3 int compArea=component.getPreferredSize().width*component.getPreferredSize().height;
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.