java如何去掉button按钮的边框
展开全部
你去掉按钮的边框干嘛?要是不想看到按钮的边框,那你还是用标签(JLabel)替换按钮吧。标签也可以添加ActionListener。。。。。。。等
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
public void setBorderPainted(boolean b)
Sets the borderPainted property.
If true and the button has a border,
the border is painted. The default value for the
borderPainted property is true.
Some look and feels might not support
the borderPainted property,
in which case they ignore this.
Sets the borderPainted property.
If true and the button has a border,
the border is painted. The default value for the
borderPainted property is true.
Some look and feels might not support
the borderPainted property,
in which case they ignore this.
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询