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
buttonIcon.setBorder(new EmptyBorder(0,0,0,0));