Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

preventing resizing of frames  RSS feed

 
Bill R
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would one go about preventing a JDialog from being resized (or any other top level container for that matter)? Specifically, when a user clicks on the border of the frame, and drags it.
Thanks,
BillR
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The setResizeable() method inherited from Dialog, ie:
myDialog.setResizeable(false);
 
Bill R
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOH!!! Should have looked further down the JDialog API.

Much appreciated,
BillR
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!