wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Problem wth ActionListener Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem wth ActionListener Interface" Watch "Problem wth ActionListener Interface" New topic
Author

Problem wth ActionListener Interface

Ammy Singh
Ranch Hand

Joined: Oct 17, 2008
Posts: 36
Greetings I am trying to apply ActionListener Interface to a small swing based application. I have a cancel button, all i want is that when cancel button is hit the application should exit. i have used
Method for making the cancel button affective.

But i am getting the following error:


here is the complete code


Please help

SCJP1.4
i luv Ranch it always helps...!!!
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
I think you need to
Ammy Singh
Ranch Hand

Joined: Oct 17, 2008
Posts: 36
Thanks Tom Reilly
 
wood burning stoves
 
subject: Problem wth ActionListener Interface
 
Similar Threads
Modal dialog box and request focus
How adding new row record in table???
Parent/Child Window Communication
JDialog: How to set focus on second JButton?
Need help on login frame in java.