I have the following GUI:
The problem is, the [Register LMS] button should only be displayed when I'm on the Flood Monitoring tab.
When I go to the User Registration tab, another button should display called [Register User]. Obviously when I get back to the Flood Monitoring tab, I would need my [Register LMS] button back.
I know how to hide Swing components via the setVisible(false);
method, but I am not sure how to add the trigger (action listener) to the change of tabs and nothing else.