aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes ActionListener and MouseListener in same class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ActionListener and MouseListener in same class" Watch "ActionListener and MouseListener in same class" New topic
Author

ActionListener and MouseListener in same class

Gabriella Hakansson
Greenhorn

Joined: Apr 19, 2010
Posts: 6
I want an actionlistener and mouselistener in the same class, and it's not possible to do as i did:


I got an errormessage like " '{' expected " after "implements ActionListener".

So my question is how can i do it?


Just trying to be a good programmer.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9



[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Gabriella Hakansson
Greenhorn

Joined: Apr 19, 2010
Posts: 6
Thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ActionListener and MouseListener in same class