Connecting Tech Pros Worldwide Help | Site Map

Change look of disabled JButton

  #1  
Old April 21st, 2007, 08:15 AM
Oswald Otte
Guest
 
Posts: n/a
Hello

How can I change the look of a disabled JButton? I have made a boardgame
with a brown background and brown buttons. I have also put an imageicon on
the buttons that has a colored image on it. When I disable the buttons, the
colored image is turned into grey which screws up the look of my game.

Can I change the grey color on a disabled button? Or do I have to keep it
enabled, and attach another imageicon with different color to show the user
he can't click the button?

Also, I can sometimes see a blue/gray line around my buttons. I want to get
rid of it, so I guess it has something to do with setBorder, but I can't
find it.

Thx,
Oswald


Closed Thread