How can I set the enabled/disabled state of a menuitem depending upon current conditions?
For example:
Suppose I have a menu item called "Delete selected item"
If there are no items selected then I would like the menu option to be greyed out (disabled)
Alternatively if there is a selected item then I would like this menu option to be enabled.
How do I do this?
Many thanks in advance
Jeff
> Sub: Setting the state of a menuitem on the fly
You might find the JavaDocs good for getting answers 'on the fly'
<http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html>
> How can I set the enabled/disabled state of a menuitem depending
> upon current conditions?
Note that many news readers wrap text at less than 82
characters, please consider wrapping lines befoire that.
- <http://java.sun.com/j2se/1.5.0/docs/api/java/awt/MenuItem.html>
- ctrl 'f' (find in page)
- 'etena' (enter)
...
HTH

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"Just give me one more wish. I can't get enough of this!"
New Order 'Slow Jam'