Java: using an image as a button

后端 未结 9 2347
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 02:53

I would like to use an image as a button in Java, and I tried to do this:

BufferedImage buttonIcon = ImageIO.read(new File(\"buttonIconPath\"));
button = new         


        
9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 03:18

    This can be done easily in netbeans by setting the contentAreaFilled Property to False

提交回复
热议问题