permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes question on menu item Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "question on menu item" Watch "question on menu item" New topic
Author

question on menu item

salvador rcn
Ranch Hand

Joined: Feb 18, 2004
Posts: 51
hi, i got " A menu item generates an ActionEvent "
its somewhat peculiar to me.
why not a menu item generates an ItemEvent as there is different Items to choose !!
is there any reason or just it is the fact ?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

It's just the way it was implemented... it's designed like each MenuItem is a button, not like each Menu is a list.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question on menu item
 
Similar Threads
enable and disable a menu item in a menu bar
Container
Mozilla Add-ons problem
Labels in Struts-Layout
addition of components