Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid user to resize and maximize the frame?

 
Mindy Wu
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a frame and I don't want user to resize and maximize the frame after executed?
Thanks
Mindy
 
Golam Newaz
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Kindly type the following code into your program like inside
your constructor method:
setResizable(false);
Thanks,
Sayeed
 
Golam Newaz
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Kindly type the following code into your program like inside
your constructor method:
setResizable(false);
Thanks,
Golam Sayeed Newaz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic