[Java] Swing - JFrame.pack()

Enigma

Captain Pro
Registriert
Apr. 2004
Beiträge
4.001
Was macht die Methode JFrame.pack() ?
 
public void pack()

Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. If the window and/or its owner are not yet displayable, both are made displayable before calculating the preferred size. The Window will be validated after the preferredSize is calculated.

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html#pack()
 
Zurück
Oben