This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 10747
    
    9

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: 10747
    
    9

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: 4999
    
    8



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: 10747
    
    9

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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JColorChooser custom name
 
It's not a secret anymore!