wood burning stoves 2.0
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
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: http://aspose.com/file-tools
subject: question on menu item
It's not a secret anymore!