• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jbutton colour issue while changing look anf feel

 
hafz Khan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have changed the colour of the JButton and when i change the look and feel to some other, then the jbutton's colour is changing . As i want to give some good looking colours to my button..can i know which are all the standard colours which can be used.

Thank You,
hfz
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> ...can i know which are all the standard colours which can be used.

look at the Color api, or
open a JColorChooser and play around with the colors.

you may also want to look at the UIManager's defaults
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic