File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Swing / AWT / SWT
Joined: Jan 29, 2006
Apr 22, 2006 08:14:00
I could not understand entirely that what the purpose of pack method is in Frames ??
Would you please explain by giving example code snippet ?
Jeroen T Wenting
Joined: Apr 21, 2006
Apr 22, 2006 08:34:00
It does the work to actually lay out all the components on the user interface, size them, and thus size the screen itself.
Just create a Swing application without calling pack() and see what happens.
subject: pack() method
pack() and validate()
how to increase the height of a JScrollpanes dynamically
JLabel centered in a JPanel
Help,Components inside my Frame would not be displayed until maximized.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014