Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Transparent Frames

AWT does not allow part of a frame to be transparent. But, you can grab the screen background and show it in the frame. For code snippets, look at Irregular Frame Shape.

There is a new java.awt.noerasebackground property since 1.4, but I have not been able to make a frame transparent by changing that property and setting opaque property of all contained components to true. Perhaps this will be fixed in a newer version of Swing.

 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  workaround/transparent_frame.txt · Last modified: 2005/02/13 20:36 by 127.0.0.1 (gojko)
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources