This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "question on menu item" Watch "question on menu item" New topic

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

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

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.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: question on menu item
It's not a secret anymore!