Posted on 2004-10-05
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?