General Form

I'm writing a fairly large application at the moment and in the interest of readability, organization and passing the source code on, should I have separate listener classes or just keep them nested?

The reason I ask this is because in one class I will have two fairly large nested listener classes (mouse listener & drag and drop).

Thanks.

[365 byte] By [kerryblue19a] at [2007-11-27 10:17:51]
# 1

You should decide that based on the functionality of the listener classes. If they only after one component say a JTree, then you could keep them nested, however, if the functionality affects several components in different classes, then you should place them in a seperate file

ICE

icewalker2ga at 2007-7-28 15:54:06 > top of Java-index,Desktop,Core GUI APIs...
# 2

okay thanks

kerryblue19a at 2007-7-28 15:54:06 > top of Java-index,Desktop,Core GUI APIs...