Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5311

Re: JTabbedPane fails to clip tab text

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@knutejohnson.com>
Newsgroups comp.lang.java.gui
Subject Re: JTabbedPane fails to clip tab text
Date Fri, 08 Mar 2013 09:33:49 -0800
Organization A noiseless patient Spider
Lines 24
Message-ID <khd7b3$66r$1@dont-email.me> (permalink)
References <fc8f8e86-58b9-44ca-962b-301da5c8710c@googlegroups.com> <nospam-1C7804.10063906032013@news.aioe.org> <27ea8628-9891-4916-9d6d-1db1e40f357c@googlegroups.com> <nospam-CFFF8E.04045808032013@news.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 8 Mar 2013 17:32:20 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="6363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pw6bad0okKqdcM7L7Fzoh"
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
In-Reply-To <nospam-CFFF8E.04045808032013@news.aioe.org>
Cancel-Lock sha1:VL7AdOuiPFbiEsaRxD+yQwM9VCM=
Xref csiph.com comp.lang.java.gui:5311

Show key headers only | View raw


On 3/8/2013 1:04 AM, John B. Matthews wrote:
> In article <27ea8628-9891-4916-9d6d-1db1e40f357c@googlegroups.com>,
>   FredK <fred.l.kleinschmidt@gmail.com> wrote:
>
>> When using John's code, I notice that the Windows and Windows Classic
>> LAF almost does this (it draws the text one pixel past the tab edge
>> and clips the rest),
>
> A similar result is seen on Ubuntu 12/OpenJDK with GTK+ L&F.
>
>> while in all other LAF's the text bleeds over the tab bounds up to
>> the container's insets.
>
> A similar result is seen on Ubuntu 12/OpenJDK, with the remaining L&Fs:
> Metal, CDE Motif and Nimbus.
>

I had a thought that you might be able to get into the UI and modify the 
title painting but after looking at the source, I think it would be very 
difficult (for me anyway).  Almost all of the methods are protected too.

-- 

Knute Johnson

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar


Thread

JTabbedPane fails to clip tab text FredK <fred.l.kleinschmidt@gmail.com> - 2013-03-05 10:51 -0800
  Re: JTabbedPane fails to clip tab text Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-03-05 12:47 -0800
  Re: JTabbedPane fails to clip tab text "John B. Matthews" <nospam@nospam.invalid> - 2013-03-06 10:06 -0500
    Re: JTabbedPane fails to clip tab text FredK <fred.l.kleinschmidt@gmail.com> - 2013-03-06 08:01 -0800
      Re: JTabbedPane fails to clip tab text "John B. Matthews" <nospam@nospam.invalid> - 2013-03-08 04:04 -0500
        Re: JTabbedPane fails to clip tab text Knute Johnson <nospam@knutejohnson.com> - 2013-03-08 09:33 -0800

csiph-web