*
The moose likes Swing / AWT / SWT and the fly likes What is the use of Jframe.pack()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What is the use of Jframe.pack()?" Watch "What is the use of Jframe.pack()?" New topic
Author

What is the use of Jframe.pack()?

krishna balaji
Ranch Hand

Joined: Mar 16, 2006
Posts: 31
I was trying to find where is Jframe.pack() documentation for developers provided in sun site .
Please provide me link regarding Jframe.pack() Thanks a lot
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

If you open the JFrame API page, you'll notice that pack() is not defined in JFrame itself. Instead, if you scroll down, you see that this method is inherited from Window.

Here the exact link to the pack() method.

If the link doesn't work, replace the %28%29 in the address bar with (). Otherwise, just scroll down.
[ December 16, 2007: Message edited by: Rob Prime ]

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: What is the use of Jframe.pack()?
 
Similar Threads
swing doubt
Code to generate a Grid Test GUI
image blanks out... why?
commonly accepted procedure for switching panels in a JFrame
How to size jsplitpane?