This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 20136
    
  30

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 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the use of Jframe.pack()?
 
It's not a secret anymore!