D
dougmmika
Hi to all
I'm writing an application and I have the following problem. When I write EventListeners I write them in seperate classes (and seperate files) for reasons of clearity. But these event listeners I want to modify other classes that aren't defined in the EventListeners. They already exist in the main program. The problem I have is how best to get these eventlisteners to know of these classes (which are also in seperate files)? Up to know I have used Singletons (I made the classes the event listeners were to modify global) but this seems ugly. How are java applications written to let the eventlisteners see the classes they are to modify (sometimes these classes are seperate application components in seperate files)?
I hope this makes sense
Doug
I'm writing an application and I have the following problem. When I write EventListeners I write them in seperate classes (and seperate files) for reasons of clearity. But these event listeners I want to modify other classes that aren't defined in the EventListeners. They already exist in the main program. The problem I have is how best to get these eventlisteners to know of these classes (which are also in seperate files)? Up to know I have used Singletons (I made the classes the event listeners were to modify global) but this seems ugly. How are java applications written to let the eventlisteners see the classes they are to modify (sometimes these classes are seperate application components in seperate files)?
I hope this makes sense
Doug