Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to disable the Minimize / Maximize options on the System Menu  RSS feed

 
Chris Gove
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my JDialog is being displayed if the user right clicks the title bar a system menu is displayed with the options: Restore, Move, Size, Minimize, Maximize, and Close. Even though my setResizable() property is set to false sometimes the maximize or minimize or both are not greyed out. If the user clicks either option the JDialog has no way to get back to the initial size so the Dialog must be closed and reopened to get back to the initial size. Most of the time the min/max option is greyed out, but not all the time - any ideas on why this is happening?

Thanks in advance
 
Rob Camick
Ranch Hand
Posts: 2800
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of the time the min/max option is greyed out, but not all the time - any ideas on why this is happening?


Random problems generally indicate code is not executed on the EDT. See the section on Concurrency for more information.

If you need more help then post your SSCCE that demonstrates the problem.
 
Chris Gove
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for answering....I appreciate your time.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!