A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
pack() method
memati bas
Ranch Hand
Joined: Jan 29, 2006
Posts: 85
posted
Apr 22, 2006 08:14:00
0
Hello,
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
Ranch Hand
Joined: Apr 21, 2006
Posts: 1847
posted
Apr 22, 2006 08:34:00
0
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.
42
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: pack() method
Similar Threads
how to increase the height of a JScrollpanes dynamically
Help,Components inside my Frame would not be displayed until maximized.
pack() and validate()
frame resize
JLabel centered in a JPanel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter