Java transparent panels & custom effect on panels
问题 I want to have transparent panels in my GUI (if like Windows 7 window headers, it is better). Before I have used com.sun.awt.AWTUtilities as AWTUtilities.setWindowOpacity(frame, (float)0.90); but its parameter is a window like JFrame and couldn't be used for JPanel . Also I want to have effects on JPanel or JLabel for example luminescence, as is on Windows 7 header buttons. Any other interesting effect is also helpful for me. 回答1: Please see the tutorials How to Create Translucent and Shaped