Solved

Menu Opening Notification

Posted on 1997-03-25
1
159 Views
Last Modified: 2010-04-16
Is there a way to know when a menu is about to open is its menu items can be enabled/disabled before being visible?
0
Comment
Question by:LCubed@ibm.net
1 Comment
 

Accepted Solution

by:
Doug032697 earned 50 total points
Comment Utility
From "Java in a Nutshell," from O'Reilly & Associates (a book everybody interested in Java programming should have, IMO, because it's both handy and cheap), the only menu-related that the AWT knows about is a MenuItem generating an ACTION_EVENT.  If I've understood your question correctly, the answer is thus no.

If what you really want to know is how you can make sure the right menu items are enabled or disabled, enable them or disable them as soon as this state becomes appropriate.  In other words, if one menu selection should cause another menu item to become disabled, disable it immediately upon receiving the first menu item's event.  You can then be assured that it will be disabled the next time this menu is displayed, unless of course you have re-enabled it.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now