aspose file tools*
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 Spring in Action 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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem wth ActionListener Interface