aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JColorChooser custom name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JColorChooser custom name" Watch "JColorChooser custom name" New topic
Author

JColorChooser custom name

Tina Boettger
Greenhorn

Joined: Apr 05, 2011
Posts: 15

Is it possible to rename a panel of the ColorChooser without having to implement it on your own?

Thank you for your answers
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995
    
    7

TinaColorChooser extends JColorChooser?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tina Boettger
Greenhorn

Joined: Apr 05, 2011
Posts: 15

I don't know how that will help, I want the DefaultSwatchChooserPanel to have a different name.
Right now it's called "swatch" which doesn't make any sense for my application...
Can you explain your idea a little bit more Please I feel like I can't see the wood for the trees...
I already tried extending the DefaultSwatchChooserPanel but that doesn't work because the class is not visible...
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995
    
    7

I am not sure I am fully understanding your question here.

Like I mentioned earlier, you can either subclass and name like
TinaColorChooser extends JColorChooser
or
JColorChooser myColorChooser=...

Is this what you are asking. It would help if you clarify a bit more on what you mean by rename a panel of the ColorChooser without having to implement it on your own
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5



luck, db
There are no new questions, but there may be new answers.
Tina Boettger
Greenhorn

Joined: Apr 05, 2011
Posts: 15

I am sorry Maneeshji I should have made it clearer. I see that it was a bit confusing now...


Thank you Darryl! I had managed to search through the code and find the value was in the
UIManager class but I didn't know those values could be changed...

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995
    
    7

Doh! Now I got it after I re-read Darryl's reply, yet one more time!
Tina Boettger
Greenhorn

Joined: Apr 05, 2011
Posts: 15

Thank you for your help, too, of course!
It's always a great experience to write in this forum
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JColorChooser custom name
 
Similar Threads
Problem with creating JTable
Happy Birthday!
Burnout
Java popular in India?
Role and Experience