Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding maxmize icon to JFrame

 
Leela murthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic