How to make java.awt.Label background transparent?
问题 I used to do the transparent background with javax.swing.JLabel this way: lbl.setBackground(new Color(0, 0, 0, 0)); . But it doesn't work with java.awt.Label. Is there any simple way to make the label transparent? Update: public class SplashBackground extends Panel { private static final long serialVersionUID = 1L; private Image image = null; /** * This is the default constructor */ public SplashBackground() { super(); initialize(); } /** * This method initializes this * */ private void