how to put a image on a jbutton in java code example
Example: add image on JButton
buttonB.setIcon(new ImageIcon(this.getClass().getResource("imagename")));
buttonB.setIcon(new ImageIcon(this.getClass().getResource("imagename")));