This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
Resizing TextArea()
Newbie question about transferring data between classes
Crypto Challenge Instructions
ActionListener not recognized under Solaris
GridBagLayout Problem