JideTabbedPane scroll buttons

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 scroll buttons

Postby poss » Mon Oct 03, 2011 9:23 am

Hi i am using jide-oss-2.5.5 with Standart JDK 1.6.12.
I have a class inherited from JideTabbedPane and the scrolling buttons(forward/backward) are not working.
Could you please tell me, how to access these buttons, so that i could change listeners/implement my own.

The list button is working correctly
poss
 
Posts: 6
Joined: Mon Oct 03, 2011 9:10 am

Re: JideTabbedPane scroll buttons

Postby JIDE Support » Mon Oct 03, 2011 9:44 am

Please give the following code a try. It will also help if you let us know how you override the class.
Code: Select all
                new JideTabbedPane();
                ActionMap map = (ActionMap) UIDefaultsLookup.get("JideTabbedPane.actionMap");
                map.put("scrollTabsForwardAction", new AbstractAction() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        System.out.println("scroll forward");
                    }
                });
                map.put("scrollTabsBackwardAction", new AbstractAction() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        System.out.println("scroll backward");
                    }
                });

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane scroll buttons

Postby poss » Mon Oct 03, 2011 10:24 am

I tried this code, but it doesn't work, the commands in actionPerformed method are not executed.
poss
 
Posts: 6
Joined: Mon Oct 03, 2011 9:10 am

Re: JideTabbedPane scroll buttons

Postby JIDE Support » Mon Oct 03, 2011 11:19 am

Sorry that I didn't mention the tricky part. The JideTabbedPane instantiation in my posted code is just to make sure the entry "JideTabbedPane.actionMap" is registered in UIDefaults. You have to create your JideTabbedPane instances after these code.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane scroll buttons

Postby poss » Mon Oct 03, 2011 11:09 pm

Ok i inserted this code just before instantiating my inherited class, and still the commands in scroll buttons are not executed.
poss
 
Posts: 6
Joined: Mon Oct 03, 2011 9:10 am

Re: JideTabbedPane scroll buttons

Postby JIDE Support » Mon Oct 03, 2011 11:18 pm

I wonder if you misunderstood the meaning of scroll buttons. It is not to change the selected tab but to scroll the tab area left and right when there are too many tabs.
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane scroll buttons

Postby poss » Mon Oct 03, 2011 11:41 pm

I am very sorry. You are absolutely right, i thought these buttons were to change selected tab.
Thanks for great support!
poss
 
Posts: 6
Joined: Mon Oct 03, 2011 9:10 am


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

Who is online

Users browsing this forum: Google [Bot] and 8 guests

cron