Method pack()
Return type: void
Member of: java.awt.Window
[api documentation ] [ main menu]

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

1 pack();
2 pack();
3 ((Frame)f).pack();
4 dialog.pack();
5 pack();
6 pack();
7 window.pack();
8 pack();
9 pack ();
10 pack();
11 pack();
12 pack();
13 if (!isLayouted()) pack();
14 m_frame.pack();
15 mainMenu.pack();
16 if (getTopLevelAncestor()!=null) ((JFrame)getTopLevelAncestor()).pack();
17 main.pack();
18 settingsFrame.pack();
19 pack();
20 dialog.pack();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.