A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Adding maxmize icon to JFrame
Leela murthy
Greenhorn
Joined: Sep 12, 2006
Posts: 6
posted
Sep 12, 2006 23:45:00
0
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
posted
Sep 13, 2006 01:06:00
0
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
posted
Sep 13, 2006 01:52:00
0
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 icon
SetIconImage Question
JDialog With Icon
AWT/SWING
change the icon of .jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter