Disable JButton focus border

前端 未结 5 1070
说谎
说谎 2020-12-15 16:38

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 :

          


        
5条回答
  •  渐次进展
    2020-12-15 17:33

    see if this can help you out Remove border

    or maybe this

    Border emptyBorder = BorderFactory.createEmptyBorder();
    yourButton.setBorder(emptyBorder);
    

提交回复
热议问题