Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Color Palette  RSS feed

 
Jenith shiva
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to know how to add a Color Palette on a button click to pop up and give me the R,G and B on selection of a color.
A sample code should be helpful tooo..
Thank you
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JColorChooser component has this built in... that would be the easiest thing to use... ( Select a color in it and then choose the RGB tab... )



-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!