Link to home
Start Free TrialLog in
Avatar of adg
adg

asked on

Windows-style button

I'm using a JButton with a bevel border and the windows plaf. I'm trying to get a button that looks like the most common kind of windows-style button. The kind that when its clicked it looks like its being pressed down and then it pops back up.

What I'm hoping to see is when I click on the button the color of the upper left and lower right bevels switch, while the face stays the same color and then it switches back.

What I'm getting is that the bevels stay the same color and the face switches, which doesn't look much like anything was pressed.  

I can probably code this behavior myself but I'm guessing that there are just some settings somewhere that I need to use. Or maybe there is already some available button class that does this.

Can someone direct me to a good way to accomplish this?

Thanks!  
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adg
adg

ASKER

I feel like such an idiot. I could have sworn I was already in the windows look and feel but I guess not cause that worked wonders.  

Thanks!
>> I feel like such an idiot.
Just don't do! ;°)

Thanks for accepting.