Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu Item Event

 
vinoth ar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Menu in swing. And I have menu item called search, once i click that new window should open. What should I do???

i wrote the above code actionPerformed();
Even then it is not working. Help me out with this

Thank you,
vino...

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vinoth ar", please check your private messages for an important administrative matter.
 
Rob Spoor
Sheriff
Pie
Posts: 20555
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the code for the actionPerformed method? Are you sure you attached that ActionListener / Action?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic