Article View: borland.public.jbuilder.java.swing
Article #9294Re: Setting a standard size for tabs
From: Andreas Andersson
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
23 lines
1394 bytes
1394 bytes
Hello, I figured out one way myself and that is to override the two functions in BasicTabbedPaneUI (this class is what i actually ment, I put wrong classname in my question :-), named calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) and calculateTabHeight(...). // Andreas Andreas Andersson <andreas.andersson@medicinsklogik.se> wrote in message news:38feeae7@dnews... > Hi, > I would like to have a standard tab size for my TabbedPane. Currently tab > size is largely controlled by the length of text and font selected. I have > done my own class that extends BasicTabbedPaneDemo but I can't find which > method I should override to get my desired behavior. Perhaps it's the > paintTabBorder(..) method I shall override, but I can't get it to work. > > Any ideas, someone > > // Andreas > >
Technical Details
Message-ID:
<39054d1c@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38feeae7@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4bebed2fef06610e X-Google-Attributes: gid111d45,public From: "Andreas Andersson" <andreas.andersson@medicinsklogik.se> Subject: Re: Setting a standard size for tabs Date: 2000/04/25 Message-ID: <39054d1c@dnews> X-Deja-AN: 615361296 References: <38feeae7@dnews> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: 25 Apr 2000 00:45:32 -0800, 193.15.79.66 Organization: MLAB X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing