I have a query about a frame with 2 panels.
I want to put some buttons inside the bottom panel, but I need the actions (ActionListener) to occur inside the top panel.
Can you guide me how to connect the panels to be able to do this?
Thanks for your help!
Have the top panel implement ActionListener or contain an Action and pass this listener or action to the buttons that are in the south panel. The buttons will generate the events, notify the actions/actionListeners and these will receive the events in the top panel.
I will try your suggestion.