Focus Tab in DockingDesktop

49 views
Skip to first unread message

Lukáš Kripner

unread,
Jul 1, 2013, 4:10:01 AM7/1/13
to vldo...@googlegroups.com
Hello.

On the main DockingDesktop is are some tabs and active button, which change a content of one tab. However, I haven't found the way how focus this tab, when an other tab is focused befor touching the button. Is there a way how to do that?

Thank you,
Lukas

Message has been deleted

Andrew Carlson

unread,
Jul 31, 2013, 7:46:17 PM7/31/13
to vldo...@googlegroups.com
I retract my previous statement. I had some free time so I looked deeper into your question.

The short answer is: DockingUtilities.findTabbedDockableContainer(Dockable).setSelectedDockable(Dockable);

The Dockable parameter in DockingUtilities.findTabbedDockableContainer() will give you the TabbedDockableContainer that it belongs to.
Then the Dockable parameter in TabbedDockableContainer.setSelectedDockable() will set focus to that Dockable making it the visible tab.

Sorry it took so long to get you an answer, I have been busy with my day job and a personal project.

I attached an example if anyone needs it.
TabFocusing.java
Reply all
Reply to author
Forward
0 new messages