Where do the pros place their listener classes in Swing applications. Inner classes, nested classes, top level or what? I haven't worked on a big commercial swing app so am curious as to how the pros do it.
"....bigmouth strikes again, and I've got no right to take my place with the human race...."<p>SCJP 1.4
I dont know if i'm included in the 'pros', but i implement my listeners as inner classes, not annonymous or static, simple ones. Coding like this you can separate the listeners methods by subject ,and your code dont get mess. For buttons or menus you can consider use an Action implementation always you can. Cl�udio Gualberto SCJP 1.4
Listeners are generally coded base on functionality. If you want the benfit of reuse, you should create a top-level class. If you just want to use the listener within the class, Inner classes would do fine.