πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Remove a panel in a ColorChooser

#524
From: Paul Furbacher [TeamB]
Date: Thu, 02 Jun 2005 12:10
35 lines
1867 bytes
CοΏ½dric LAFFONT wrote:

> I try to remove the RGB panel in a ColorChooser but it doesn't work.
> This is what I do:
> 
> JColorChooser chsrClr = new JColorChooser();
> ...
> mainPanel.add(chsrClr);
> ...
> AbstractColorChooserPanel ccp[] = chsrClr.getChooserPanels();
> chsrClr.removeChooserPanel(ccp[2]);
> chsrClr.repaint();

This is just an idea.  Once you identify the panel
just set its visibility to false.  That might be easier
than removing it.

As I said, this is just an idea.  I don't have time
to test it.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://www.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <429ef737$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <429eb03a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,811d954f7edc4c5c
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII
Date: Thu, 02 Jun 2005 08:10:31 -0400
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Remove a panel in a ColorChooser
References: <429eb03a$1@newsgroups.borland.com>
In-Reply-To: <429eb03a$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 69.142.222.65
Message-ID: <429ef737$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117714231 69.142.222.65 (2 Jun 2005 05:10:31 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail