File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem wth ActionListener Interface" Watch "Problem wth ActionListener Interface" New topic

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

i luv Ranch it always helps...!!!
Tom Reilly

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

Joined: Oct 17, 2008
Posts: 36
Thanks Tom Reilly
Don't get me started about those stupid light bulbs.
subject: Problem wth ActionListener Interface
It's not a secret anymore!