Hello, we have several tabs within our toolbar menu to provide some additional functionality to our users. We are using Java Swing JTabbedPane to define our UI elements for this menu.
Up until this point, we have had around 4 tabs without encountering issues. Today we added an additional tab which caused our tabs to exceed the width of the UR+ toolbar menu and therefore wrap. This presented an issue with how the tabs were displayed as selected. All of the tabs open the pages they are supposed to, however when a tab in the bottom row of tabs is selected, the highlight, which shows the user their selected tab, is displayed on the top row of tabs, obscuring their titles. I tried changing the JTabbedPane to use SCROLL_TAB_LAYOUT which yields good highlighting behavior but necessitates having tiny arrows to scroll through the tabs which are barely noticeable as well as impractical for use on the pendant due to their size.
Am I missing something that would allow good behavior with JTabbedPane.WRAP_TAB_LAYOUT? Is this issue perhaps a result of how UR handles look and feel behind swing elements? If so, is there a workaround for good tab behavior when the number of tabs exceeds the width of the toolbar menu?
Any thoughts or solutions gratefully welcomed.
This image show the Production tab, selected as expected.
This image shows the Process tab selected, but the highlight is displayed on the above line, obscuring production and service.
Hi Elliot,
this is something that is caused by our look and feel. I have raised this Bug internally, however it is not being prioritized at the moment. While I agree with you that for your purpuse you have chosen the best UI Element, a workaround would always be to chose some other forms of controlling the different panels. How about you create a grid of buttons that then switch out the content accordingly?
I know this is far from a perfect solution as you basically have to then recreate the already existing behavior of a tabbed pane, just with buttons, however I think this might be a good and solid way forward.
//Florian