title: JButton Transparency on an BufferedImage
body: <p>I have a Problem:</p>
  
  <p>I'm rendering a BufferedImage in a JFrame. Then i add a JButton to the same frame.
  when i try to make the button transparent, the button becomes transparent, but disregarding its actual position, its always transparent like it is stuck in the top left corner of the frame.
  I testet some different methods to make the button transparent, always with the same result.</p>
  
  <p>any ideas?</p>
  
  <p>thanks</p>
  
  <pre><code>public class TestPanel extends JPanel {
  
  public TestPanel(){
      JButton foo = new JButton("test");
      foo.setBackground(new Color(0, 0, 0, 0));
      foo.setBounds(20, 100, 300, 50);
      this.add(foo);
  }
  
  public void paint(Graphics g){
      Graphics2D g2 = (Graphics2D) g;
      g2.drawImage(ImageFactory.getImg(), 0, 0, null); //get a BufferedImage
      g2.dispose();
  }
  </code></pre>
  
  <p>}</p>