Transparent « JInternalFrame « Java Swing Q&A





1. Transparent JInternalFrame    coderanch.com

import javax.swing.*; import java.awt.*; class Testing { public void buildGUI() { JFrame f = new JFrame(); ImageBackgroundJDesktopPane desktop = new ImageBackgroundJDesktopPane("test.gif"); //above to have image displayed on desktop, or comment out above line, uncomment next two //JDesktopPane desktop = new JDesktopPane(); //desktop.setBackground(Color.BLUE); JInternalFrame internalFrame = new JInternalFrame("Frame", true, true, true, true ); internalFrame.setOpaque(false); internalFrame.getContentPane().setBackground(new Color(0,0,0,0)); internalFrame.setPreferredSize(new Dimension(100,100)); internalFrame.pack(); internalFrame.setVisible( true ); ...

2. JInternalFrame transparent    forums.oracle.com