C
C-man
Say, I have a simple Jframe set up, in which I have a main panel, then
embedded in this main panel I have a bunch more panels, and so on and so
fourth. and each panel will be it's own class and so it's own file. What is
the best way to add an action listener? Should a guy have an action listener
for each panel to keep it more object oriented? How does say the main panel
access say a text field from a panel that is nested deep in other panels?
Should there just be a main action handler and all global components? I
think I read somewhere that there is a way to have an action listener just
pass the message to its parent panel. Is this correct?
Thanks
Allot
embedded in this main panel I have a bunch more panels, and so on and so
fourth. and each panel will be it's own class and so it's own file. What is
the best way to add an action listener? Should a guy have an action listener
for each panel to keep it more object oriented? How does say the main panel
access say a text field from a panel that is nested deep in other panels?
Should there just be a main action handler and all global components? I
think I read somewhere that there is a way to have an action listener just
pass the message to its parent panel. Is this correct?
Thanks
Allot