This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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!