Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Elasticsearch in Action this week in the Big Data 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

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

Joined: Oct 27, 2005
Posts: 19908

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 ]

How To Ask Questions How To Answer Questions
subject: What is the use of Jframe.pack()?