Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

disabling JFrame resize  RSS feed

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JPanel inside a JFrame that I load from an applet. What's the routine to disable user from resizing this JFrame?
thanks,
Alex
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call the setResizable( false ) method of JFrame to stop the user from resizing the frame.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!