This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
JDialog With Icon
change the icon of .jar file
JDialog icon
AWT/SWING
SetIconImage Question