GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Jbutton colour issue while changing look anf feel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jbutton colour issue while changing look anf feel" Watch "Jbutton colour issue while changing look anf feel" New topic
Author

Jbutton colour issue while changing look anf feel

hafz Khan
Greenhorn

Joined: Jul 04, 2010
Posts: 16
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

Joined: Jun 09, 2003
Posts: 4632
> ...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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jbutton colour issue while changing look anf feel