What I want is something similar to the tab-selection part of a JTabbedPane, but without the panel below it which automatically fills with content associated with the tabs.
This way, I can detect the selection of tabs using a listener and do something else based on it.
I don't think there are any other components which could achieve this, so the best solution will probably be some way of manipulating a JTabbedPane so that it only displays the tabs and hides the panes below it.
I would very much appreciate any ideas. Thanks in advance!