title: Multiple PNG's in JFrame
body: <p>I am trying to show multiple pngs with transparent background in a <code>JFrame</code> but they always have a white background.</p>
  <p>Here's my code:</p>
  <pre><code>JFrame frame = this;
  frame.setUndecorated(true);
  
  back1 = new ImageIcon(&quot;res/launcher/back_1.png&quot;);
  JLabel label = new JLabel(back1);
  label.setOpaque(false);
  label.repaint();
  frame.add(label);
  
  play_btn = new ImageIcon(&quot;res/launcher/play_btn.png&quot;);
  label = new JLabel(play_btn);
  label.setOpaque(false);
  label.repaint();
  frame.add(label);
  
  frame.setTitle(&quot;Schach&quot;);
  frame.setSize(WIDTH, HEIGHT);
  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
  frame.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2); // JFrame in middle of screen
  frame.setVisible(true);
  
  frame.repaint();
  </code></pre>