hide background of button java swing
JButton play = new JButton("This",new ImageIcon("src\play.png"));
play.setBorderPainted(false);
play.setContentAreaFilled(false);
play.setFocusPainted(false);
play.setOpaque(false);