W
Wizumwalt
I'm looking for a pattern that is good practice that allows called
classes to make calls back to a main application class.
Here's an example ...
My MainAppClass calls JPanelClassA which implements a custom Listener
class (basically, swing forms that allow me to control what my 3d
canvas displays). This listener class must make a call on the MainClass
where all handles to other features are being held, but it doesn't have
a handle to the main class.
I make many modifications in swing classes that must pass data back up
or invoke data in the MainAppClass so that these changes can then be
propagated back down and into my OpenGL game loop.
Is there a good pattern for this?
classes to make calls back to a main application class.
Here's an example ...
My MainAppClass calls JPanelClassA which implements a custom Listener
class (basically, swing forms that allow me to control what my 3d
canvas displays). This listener class must make a call on the MainClass
where all handles to other features are being held, but it doesn't have
a handle to the main class.
I make many modifications in swing classes that must pass data back up
or invoke data in the MainAppClass so that these changes can then be
propagated back down and into my OpenGL game loop.
Is there a good pattern for this?