It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes Problem updating a window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem updating a window" Watch "Problem updating a window" New topic

Problem updating a window

Scott Carlson

Joined: Oct 04, 2005
Posts: 4
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

Joined: Jan 14, 2004
Posts: 1535
Try 'setEnabled' from the JMenuItem api.
I agree. Here's the link:
subject: Problem updating a window
jQuery in Action, 3rd edition