JideTabbedPane issue

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.

JideTabbedPane issue

Postby TuTranQuoc » Mon Jul 18, 2011 8:24 pm

Hello,

When I used JideTabbedPane in the left, It cause a few of layout problems:
First, tab title was rotated but the tab area was calculated with rotated text and make a big gap in every tab. At this point, I want JideTabbedPane keep the text direction but the gap must be removed.
Second, the tab title always cut down if it is too long. I want the tab will stretch with the tab title or wrap it to multi-line. I tried to setTabComponentAt but this method does not affect.
Third, the background color of content border insets can not be controlled.

This problem can be solve by easier way or I have to custom the BasicJideTabbedPaneUI class for my own tabbed pane.

Thanks,
Attachments
tab_on_the_left.png
tab_on_the_left.png (12.08 KiB) Viewed 6201 times
TuTranQuoc
 
Posts: 2
Joined: Wed Jul 13, 2011 1:17 am

Re: JideTabbedPane issue

Postby JIDE Support » Tue Jul 19, 2011 4:10 pm

Can you please give JIDE JideTabbedPaneDemo a try? The layout is correct when the tab is placed at left.

Regarding the content border insets, please give the following code a try.
Code: Select all
        _tabbedPane.setTabColorProvider(new JideTabbedPane.ColorProvider() {
            public Color getBackgroundAt(int tabIndex) {
                return Color.blue;
            }

            public Color getForegroudAt(int tabIndex) {
                return null;
            }

            public float getGradientRatio(int tabIndex) {
                return 0;
            }
        });

Thanks,
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 13 guests

cron