您需要将边框设置为,EmptyBorder以便按钮内没有填充。
add this:
button1.setBorder(BorderFactory.createEmptyBorder());
上一篇 Spring SecurityContext在错误页面上返回空身份验证
下一篇 在Java中查找并替换几个文本文件中的单词?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号