Remove scroll forward/backward button of JideTabbedPane

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Remove scroll forward/backward button of JideTabbedPane

Postby pianyao » Mon May 10, 2010 11:23 pm

I wrote an UI class inherited from BasicJideTabbedPaneUI, and want to hide/remove the automatically created forward/backward button.
Since JideTabbedPane doesn't provide such an API, could anyone tell me how to remove them or explain the mechanism of calculate the area width of function buttons?
I checked the layout source code but failed to understand it, as it is more than 600 lines.
Right now I simply hide the two buttons after each layout operation, but the space they take up is still there.

Thanks...
pianyao
 
Posts: 1
Joined: Mon May 10, 2010 9:31 pm

Re: Remove scroll forward/backward button of JideTabbedPane

Postby JIDE Support » Tue May 11, 2010 7:40 am

JideTabbedPane has setShowTabButtons method which will hide the buttons. However this method doesn't always hide the scroll button because if you have too many tabs wider than the tabbed pane, you must have the scroll buttons, otherwise you can't get to all the tabs. So setShowTabButtons will only hide the scroll buttons when all the tabs are visible.
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 66 guests