title: Transparent JDesktopPane
body: <p>I would like to set the JDesktopPane to transparent and allow me to click through to what is underneath (e.g.. Desktop icons etc). The internal frame should be left opaque and able to be repositioned around the screen as it currently does. Any ideas?</p>
  
  <pre><code>    package test1;
  
      import java.awt.BorderLayout;
      import java.awt.Color;
      import javax.swing.JDesktopPane;
      import javax.swing.JFrame;
      import javax.swing.JInternalFrame;
      import javax.swing.JLabel;
  
  
      public class Test1 {
  
      public static void main(String[] args) {
  
      JFrame frame = new JFrame();
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setUndecorated(true);
  
  
      JDesktopPane desktop = new JDesktopPane();
      JInternalFrame internalFrame = new JInternalFrame("Title", false, true, false, true);
      desktop.setBackground(Color.RED);  
      //desktop.setBackground(new Color(1.0f,1.0f,1.0f,0.0f));
      desktop.add(internalFrame);
      internalFrame.setBounds(25, 25, 200, 100);
      internalFrame.setVisible(true);
      frame.add(desktop, BorderLayout.CENTER);
      frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
      frame.setVisible(true);
  
      }
  
  }
  </code></pre>