Also, about JColorChooser  
Author Message
ChooChooOnMyHead





PostPosted: 2005-11-15 7:58:00 Top

java-programmer, Also, about JColorChooser Is it possible to edit which colors are available in a JColorChooser or
is it simpler to build my own popup window with color selections?

 
Knute Johnson





PostPosted: 2005-11-15 9:37:00 Top

java-programmer >> Also, about JColorChooser ChooChooOnMyHead wrote:
> Is it possible to edit which colors are available in a JColorChooser or
> is it simpler to build my own popup window with color selections?
>

I wrote a really big program a few years ago and used a JComboBox and
put a bunch of colors in there. They only wanted a limited number of
colors. Now I'm doing another job for a different end user but the same
client and they wanted more colors. I gave them a JColorChooser that is
displayed when the user clicks on a JLabel that is colored to match
the choice. The client thought it was the coolest thing he'd ever seen.
There is no real point to this other than you never know what the
client will like :-).

Anyway to answer your question, I think it would be an extensive task to
create a different color chooser. But look at AbstractColorChooserPanel
and ColorSelectionModel.

--

Knute Johnson
email s/nospam/knute/
 
Roedy Green





PostPosted: 2005-11-15 14:19:00 Top

java-programmer >> Also, about JColorChooser On Mon, 14 Nov 2005 17:36:32 -0800, Knute Johnson
<email***@***.com> wrote, quoted or indirectly quoted someone
who said :

> I gave them a JColorChooser that is
> displayed when the user clicks on a JLabel that is colored to match
>the choice. The client thought it was the coolest thing he'd ever seen.
> There is no real point to this other than you never know what the
>client will like :-).

I did a security camera app for a client where each user got to set
up his own persistent colour scheme for different "constellations" of
cameras being viewed. These sorts of thing appeal to the inner child
and help sell.

It annoyed me that MS spent so much time fooling around with colours
and themes rather than getting on with making Windows run smoothly.
Yet their marketing people knew what sells.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
 
Roedy Green





PostPosted: 2005-11-17 4:32:00 Top

java-programmer >> Also, about JColorChooser On 14 Nov 2005 15:57:49 -0800, "ChooChooOnMyHead"
<email***@***.com> wrote, quoted or indirectly quoted someone
who said :

>Is it possible to edit which colors are available in a JColorChooser or
>is it simpler to build my own popup window with color selections?

Have a look at the source code for JColorChooser. It is quite a bit
more complicated than you might imagine. One other feature it needs
is the ability to specify/display colours in hex since this is the way
they are normally done in HTML.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.