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 :
see if this can help you out Remove border
or maybe this
Border emptyBorder = BorderFactory.createEmptyBorder(); yourButton.setBorder(emptyBorder);