• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Adding maxmize icon to JFrame

 
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.
 
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
Boost this thread!