Change design of arrows in TabbedPane with SCROLL_TAB_LAYOUT

Request new features and improvements you want to see in WebLaF.
I will answer any request so don't hesitate and post it!

Change design of arrows in TabbedPane with SCROLL_TAB_LAYOUT

Postby Endogen » Sat Feb 01, 2014 8:04 pm

When i create a WebTabbedPane with the LayoutPolicy "WebTabbedPane.SCROLL_TAB_LAYOUT" and i have to much tabs that are not all visible, then there appear two arrow buttons with which i can navigate the tabs. These two buttons are everything else then pretty in my opinion :o ;)

Maybe it's possible to center them vertically and give them the grouped button design? Or something like that...

Example:
Code: Select all
public class WebTabbedPaneScrollingTest extends WebFrame {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new WebTabbedPaneScrollingTest().setVisible(true);
            }
        });
    }

    public WebTabbedPaneScrollingTest() {
        WebTabbedPane tabbedPane = new WebTabbedPane();
        tabbedPane.setTabLayoutPolicy(WebTabbedPane.SCROLL_TAB_LAYOUT);
        tabbedPane.setTabbedPaneStyle(TabbedPaneStyle.attached);
        tabbedPane.addTab("THIS IS A TEST1", null);
        tabbedPane.addTab("THIS IS A TEST2", null);
        tabbedPane.addTab("THIS IS A TEST3", null);
        tabbedPane.addTab("THIS IS A TEST4", null);
        add(tabbedPane);

        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setPreferredSize(new Dimension(300,400));
        pack();
        setLocationRelativeTo(null);
    }
}
Endogen
 
Posts: 14
Joined: Tue Jan 22, 2013 12:48 pm

Re: Change design of arrows in TabbedPane with SCROLL_TAB_LA

Postby mgarin » Thu Feb 27, 2014 6:49 pm

Those buttons are not yet styled and look ugly indeed.
I will fix this together with renewing tabbed pane UI and adding painter support.
This is a planned change and will surely be added in next few large updates.

Here is a GitHub isue you can track:
https://github.com/mgarin/weblaf/issues/94
User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron