This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Adding maxmize icon to JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding maxmize icon to JFrame" Watch "Adding maxmize icon to JFrame" New topic

Adding maxmize icon to JFrame

Leela murthy

Joined: Sep 12, 2006
Posts: 6
When i create a frame and display it it shown with only minimize and close icons, can any one help me to add the maximize/restore icon to frame.

thanks in advance
Leela murthy

Joined: Sep 12, 2006
Posts: 6
Actually in this case when we use the method jf.setResizable(true);
the maximize/restore icon is disabled.

note 'jf' is a JFrame object.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
standard behaviour if
is really

what java version?
what look and feel?

can you post a sample program that demonstrates this?
just a frame with a size of 100x100 (and any L&F code) will do
I agree. Here's the link:
subject: Adding maxmize icon to JFrame
It's not a secret anymore!