jQuery in Action, 2nd edition*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding maxmize icon to JFrame" Watch "Adding maxmize icon to JFrame" New topic
Author

Adding maxmize icon to JFrame

Leela murthy
Greenhorn

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
Greenhorn

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
jf.setResizable(true);
is really
jf.setResizable(false);

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: http://aspose.com/file-tools
 
subject: Adding maxmize icon to JFrame