Change look of disabled JButton
- From: "Oswald Otte" <oswald_otte@xxxxxxxxxxx>
- Date: Sat, 21 Apr 2007 09:22:25 +0200
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
.
- Prev by Date: Re: Class destructors
- Next by Date: Java Web Start
- Previous by thread: Class destructors
- Next by thread: Java Web Start
- Index(es):