This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Menu Item Event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Menu Item Event" Watch "Menu Item Event" New topic
Author

Menu Item Event

vinoth ar
Greenhorn

Joined: Jan 07, 2009
Posts: 21
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...


vino...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

"vinoth ar", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

What's the code for the actionPerformed method? Are you sure you attached that ActionListener / Action?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Have you checked out Aspose?
 
subject: Menu Item Event
 
It's not a secret anymore!