Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on menu item

 
salvador rcn
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / JFC / AWT forum...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's just the way it was implemented... it's designed like each MenuItem is a button, not like each Menu is a list.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic