full in depth how to set an image to a button swing code example
Example: add image on JButton
buttonB.setIcon(new ImageIcon(this.getClass().getResource("imagename")));
buttonB.setIcon(new ImageIcon(this.getClass().getResource("imagename")));