wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes another good reason for seperate listener classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "another good reason for seperate listener classes" Watch "another good reason for seperate listener classes" New topic
Author

another good reason for seperate listener classes

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

i always thought adapters were a good idea. you don't have to write do nothing methods. but i was always extending JFrame so i couldn't use adapters.


SCJP
Visit my download page
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> but i was always extending JFrame so i couldn't use adapters.

another good reason not to extend JFrame
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: another good reason for seperate listener classes