I have a problem with JButton in Java. Basically, I want to disable the button\'s border (the button is added to JDesktopPane ).
Here is my code :
That is not border. It's focus. You can remove it using:
jButton1.setFocusPainted(false);