I have a JFrame with 2 panels and a JMenu
I am struggling to find a way how I can access JMenu from one of my panels ...
Also how can I access elements on one panel from other panel ? At the moment I am passing a reference from one panel to other in the constructor but it's only one way communication now ... I can't go from second panel to first ...
I am sure there must be an elegant way to solve this problem.
Many thanks.
Sergei
I am struggling to find a way how I can access JMenu from one of my panels ...
Also how can I access elements on one panel from other panel ? At the moment I am passing a reference from one panel to other in the constructor but it's only one way communication now ... I can't go from second panel to first ...
I am sure there must be an elegant way to solve this problem.
Many thanks.
Sergei