🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1829

Re: TabbedPane: Tab Height

#1829
From: John McGrath [TeamB]
Date: Tue, 05 Aug 2003 07:08
25 lines
1830 bytes
On 7/29/2003 at 10:35:06 AM, Ruben Misrahi wrote:

> Is there a way to define the height of the tabs in a tabbed pane?

There is no documented way to do this.  The height of the tabs is
controlled by the look and feel.  It generally depends on the size of
the font in use and a number of other properties.  These properties may
be used by different look-and-feels, but there is no guarantee of that.

Looking at the BasicLookAndFeel and BasicTabbedPaneUI classes, I find
the following properties are used to control the layout of the tabs.

    "TabbedPane.textIconGap"
    "TabbedPane.tabInsets"
    "TabbedPane.selectedTabPadInsets"
    "TabbedPane.tabAreaInsets"
    "TabbedPane.contentBorderInsets"

You can modify these properties by changing the UIDefaults, which you
can get from the UIManager.

-- 
Regards,

John McGrath  [TeamB]
Technical Details
Message-ID: <3f2f57fd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f268620$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,933c0c4fa86b2178
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-05 00:16:44 PST
From: "John McGrath  [TeamB]" <ng-b@jpmcgrath.net>
Subject: Re: TabbedPane: Tab Height
Newsgroups: borland.public.jbuilder.java.swing
References: <3f268620$1@newsgroups.borland.com>
User-Agent: XanaNews/1.15.3.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.151.11.48
Message-ID: <3f2f57fd$1@newsgroups.borland.com>
Date: 5 Aug 2003 00:08:45 -0700
X-Trace: newsgroups.borland.com 1060067325 141.151.11.48 (5 Aug 2003 00:08:45 -0700)
Lines: 25
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail