我有JButton
这样:
JButton button = new JButton("ExampleText") {
private static final long serialVersionUID = 1L;
{
setBackground(Color.LIGHT_GRAY);
setBorder(new LineBorder(Color.GRAY, 2));
}
};
它看起来像这样:
正如您所看到的,文本周围有一种蓝色边框。我该如何删除它?