Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem updating a window

 
Scott Carlson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I am trying to do is have a logout frame popup once a user clicks on Logout from the menubar. This is working fine. What I want to do is once the user pushes the Logout button, I want some of the menu items on the main frame to be disabled.

Here is the code I have but it's not updating the main window called mainFrame. Any Ideas?

 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try 'setEnabled' from the JMenuItem api.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic