I have been getting a small problem with one of my JButton's ever since I changed the look and feel of my application to a Windows style. What happens is I have an OK button in the initial panel of my application. Once I use the tab keys and press OK it closes this panel and goes to another panel, then when I use the tab keys and press the Close button in that 2nd panel, it is supposed to go back to the initial page.
But once I changed to a Windows look, once I tab and Close that 2nd page, it goes back to the initial page but automatically presses the OK button again. I think when I use the tab keys, the OK button remains pressed. All I want to do is just put the OK button in a normal state instead of a pressed state. Is there any way to get rid of this problem. I hope I am making my problem clear. Thanks.