Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create colors in swings....  RSS feed

 
sumukha kris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I have a swing application which has menu bar which contains options like degree,color etc.... when the color option is clicked i need to open up the set of colors just like MS Word or paint . How to achieve it ? I'm literally struck here :roll:
Is there any pre defined method or so in java if so can Anyone let me know about it ....

Thanks in advance,
 
Ivan Bosnjak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out examples on this page: http://java.sun.com/docs/books/tutorial/uiswing/components/colorchooser.html

Hope it helps
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sumukha" -

Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the JavaRanch Naming Policy. User names must consist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
sumukha kris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much I'm able to get the colors.....

Thank you once again for helping me .....

Thanks and regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!