像这样删除边框:
button.setBorder(BorderFactory.createEmptyBorder());
然后还有内容1:
button.setContentAreaFilled(false);
1:来自@ 3sdmx添加到问题中的解决方案

像这样删除边框:
button.setBorder(BorderFactory.createEmptyBorder());
然后还有内容1:
button.setContentAreaFilled(false);
1:来自@ 3sdmx添加到问题中的解决方案