Can we get a function to reorder tabs, like: moveTab(old_position number, new_position number)?
Paul
Can we get a function to reorder tabs, like: moveTab(old_position number, new_position number)?
Paul
pbakker:
Can we get a function to reorder tabs, like: moveTab(old_position number, new_position number)?
I’m curious, what’s wrong with using tabIndex?
the property tabIndex on TabPanel elements in the Method Editor get/sets the selectedIndex.
What I would like to be able to do is reorder the tabs at runtime.
Paul
Got it. And I assume then that the only way currently, to change the order, is by moving elements in designer. I guess the obvious way to implement this would be to have a position property for tab elements as they appear on tab layout in designer mode.
Add my vote.
The problem I’m experiencing is that when you have more tabs than will fit on one line, you get extra “lines” of tabs" controlling what tab is on what line proves very difficult, add to this the use of different look&feel and you 've got a nigthmare to control
While at it: lets add a function to retrieve the line a tab is shown on, when there are multiple lines of tabs shown.
I think that is part of the JTabPanel API of Java, so, I guess it should be possible to have that function.
Paul
In GUI design it’s very important that a control stays in the same position.
Users tend to click on a control because they expect it to be there and not because they have read the label on it.
Just ask Mac users using Windows/Linux (OK and Cancel buttons are reversed) and vice versa.
They keep clicking the wrong button.
For the same reason it’s considered bad GUI design to have multi-row tabpanels that suddenly switch rows when you click on a tab.
(ofcourse we can’t do anything about that because that is how Windows tabpanels behave)
And for the same reason it’s sometimes better to disable controls than hiding them.
So my question. Why would you want to change the order of a tabpanel ?
In my case: The user always gets presented the same GUI, with the same controls in the same place, but:
Making the GUI configurable for the user, so he/she can configure it the way they like AND the option to configure position etc of controls per UserProfile are important features of solutions I design. Therefor, I’d like to have these options.
Paul