我将JButton设置成JButton.setOpaque(false);JButton.setBorder(null),并在JButton中加入图片,没单击的时候没问题,但是单击的时候背景就变成灰色了,单击时我不要灰色的,请问怎样解决?可能说得不是很清楚,请看图。。。
没单击的时候没问题:
[URL=http://img132.picfoco.com/img.php?id=561974997]

[/URL]
单击时背景变成这样:
[URL=http://img129.picfoco.com/img.php?id=1254596597]

[/URL]