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


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

Re: Painter class for nimbus L&F

From Knute Johnson <nospam@knutejohnson.com>
Newsgroups comp.lang.java.gui
Subject Re: Painter class for nimbus L&F
Date 2011-12-01 21:21 -0800
Organization A noiseless patient Spider
Message-ID <jb9n7u$317$1@dont-email.me> (permalink)
References <94bb0148-5608-4bc3-a41e-87386a02da2a@p9g2000vbb.googlegroups.com> <jb6gni$m61$1@dont-email.me> <01e7897a-883d-43fe-9313-76fdd146b8c3@v5g2000yqn.googlegroups.com>

Show all headers | View raw


On 12/1/2011 8:37 AM, Fred wrote:
> On Nov 30, 4:11 pm, Knute Johnson<nos...@knutejohnson.com>  wrote:
>> On 11/30/2011 9:15 AM, Fred wrote:
>>
>>> To change colors on some JComponents using Nimbus L&F, I have to use a
>>> custom Painter.
>>
>>> I followed the examples of Jasper Potts, and imported from
>>>     com.sun.java.swing.Painter
>>
>>> But on some Java implementations this could not be resolved. Then I
>>> found the same definition in
>>>      org.jdesktop.swingx.painter.Painter
>>
>>> Which should be used? Why? Which is "correct"?
>>> Is there a true standard Java?
>>
>>> --
>>> Fred K
>>
>> Both of those packages are not part of the public API and you could
>> expect that they would not necessarily remain or be correct in the future.
>>
>> But I'm curious, on what JComponents could you not set the color?
>>
>
> I use a Painter to set the selected tab color for a JTabbedPane.
> --
> Fred K

The setForegroundAt() and setBackgroundAt() methods don't work with Nimbus?

-- 

Knute Johnson

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


Thread

Painter class for nimbus L&F Fred <fred.l.kleinschmidt@gmail.com> - 2011-11-30 09:15 -0800
  Re: Painter class for nimbus L&F Knute Johnson <nospam@knutejohnson.com> - 2011-11-30 16:11 -0800
    Re: Painter class for nimbus L&F Fred <fred.l.kleinschmidt@gmail.com> - 2011-12-01 08:37 -0800
      Re: Painter class for nimbus L&F Knute Johnson <nospam@knutejohnson.com> - 2011-12-01 21:21 -0800
        Re: Painter class for nimbus L&F Fred <fred.l.kleinschmidt@gmail.com> - 2011-12-02 07:52 -0800
          Re: Painter class for nimbus L&F Knute Johnson <nospam@knutejohnson.com> - 2011-12-06 18:07 -0800
            Re: Painter class for nimbus L&F Knute Johnson <nospam@knutejohnson.com> - 2011-12-06 18:16 -0800
  Re: Painter class for nimbus L&F Roedy Green <see_website@mindprod.com.invalid> - 2011-12-01 01:48 -0800

csiph-web