• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to disable maximise button of jframe

 
nishant vats
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually am developing application and i want to disable maximize button of jframe...
i am using this to enable
JFrame.setDefaultLookAndFeelDecorated(true);
now i want to disable the maximize button
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFrame.setResizable(false);
or
setResizable(false);//if extending JFrame

but you can't drag the borders to make the frame bigger/smaller, only minimize
to the taskbar
 
nishant vats
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Dunn for this..its working fine.....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!