Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JColorChooser custom name

 
Tina Boettger
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TinaColorChooser extends JColorChooser?
 
Tina Boettger
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Tina Boettger
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! Now I got it after I re-read Darryl's reply, yet one more time!
 
Tina Boettger
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help, too, of course!
It's always a great experience to write in this forum
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic