Solved

Menu Opening Notification

Posted on 1997-03-25
1
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Doug032697 earned 50 total points
ID: 1219200
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 86
jsp insert to database example 2 86
Java array 21 142
maximize the sum of fractions 33 71
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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

738 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