• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for answering....I appreciate your time.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic