Bug 205809 - Should be possible to set orientation of tabs
Should be possible to set orientation of tabs
Status: RESOLVED WORKSFORME
Product: platform
Classification: Unclassified
Component: Window System
7.1
PC Linux
: P3 with 3 votes (vote)
: 7.4
Assigned To: Stanislav Aubrecht
issues@platform
:
Depends on:
Blocks: 223979
  Show dependency treegraph
 
Reported: 2011-12-01 21:36 UTC by Geertjan Wielenga
Modified: 2013-04-09 12:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2011-12-01 21:36:44 UTC
In the Tab Control module, the client property PROP_ORIENTATION isn't respected. 

But it would be even better if users could specify the tab orientation via the Branding Editor, separately for view and editor components.
Comment 1 Stanislav Aubrecht 2011-12-02 09:48:10 UTC
that property actually applies to sliding tab containers only.

editor and view tabs are custom painted so having adjustable tab header position would require a LOT of extra code to be written...
Comment 2 Geertjan Wielenga 2011-12-02 09:52:24 UTC
Yes, but that code must already be there, otherwise this wouldn't be possible:

http://blogs.oracle.com/geertjan/entry/tabs_to_the_south
Comment 3 Stanislav Aubrecht 2011-12-02 10:24:17 UTC
(In reply to comment #2)
> Yes, but that code must already be there, otherwise this wouldn't be possible:
> 
> http://blogs.oracle.com/geertjan/entry/tabs_to_the_south

well, yes, the tab control code can do that but it doesn't look right. the tabs are painted the same way as if they were positioned at the top...
Comment 4 puce 2011-12-02 10:25:35 UTC
+1

It should be possible to set the orientation of tabs per mode.
Comment 5 hugojpinto 2011-12-02 12:29:11 UTC
+1 here for this improvement. 

Also, if you provide us with a clear pointer on what to change and in what direction, we could possibly (but without compromise) dedicate some resources to it and contribute back the changes. 

Best

HJP
Comment 6 Stanislav Aubrecht 2011-12-02 13:01:51 UTC
there are Aqua, Gtk, Metal, Nimbus, WinClassic, WinVista and WinXPViewTabDisplayerUI and XXXXEditorTabDisplayerUI classes in o.n.swing.tabcontrol module

all of them must be modified to support tabs at the bottom (and left or right positions)
Comment 7 _ tboudreau 2011-12-04 17:55:07 UTC
The basics should not be wildly difficult - TabDisplayer does all of the painting logic;  changing where it sits in its container is not hard.

Doing the work to have the tabs "face" a different way would be harder - would require subtle tweaks to painting logic.
Comment 8 Stanislav Aubrecht 2013-04-09 12:37:24 UTC
There already is branding to change the tab location, see issue #150393
In latest dev builds there is also new TabbedContainer implementation which is backed by plain JTable - it also supports various tab orientations.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo