[SOLVED] JButton selected
I have a program which creates a GUI. When I start the program, all the buttons in my GUI are disabled (I do that with setEnabled(false)). After I click some Option in the menu, I enable some buttons (again with setEnabled). My problem is that the first one of those buttons has some strange rectangle around the name, and I have to click it twice to make it work. I know it is only a small detail but I don't know what could be the reason. Any hints are appreciated.
Here some screenshots:
Before enable the buttons
Edit: Ok, after I upload the screenshots I just realize that the second one does not show what I wanted. Messing around a little bit, I discovered a new thing about the problem. When I change the window (for instance to take the screenshot), that little rectangle around the name of the button disappears, and if I click one in the button it works.