this is my problem:
1.png
as we can see, the labels and jbuttons looked like they are opaque but i set:
lblTime.setOpaque(false); b1.setOpaque(false); b2.setOpaque(false); b3.setOpaque(false);
i also have this:
public mainClass(){ setUndecorated(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); pic.setIcon(new javax.swing.ImageIcon(getClass().getResource("/logo.png"))); pic.setHorizontalAlignment(SwingConstants.CENTER); pic.setBackground(new Color(53,53,53)); pic.setOpaque(true); pic.setSize(230, 180); this.add(pic); this.add(hP); pack(); setLocation(screenSize.width-getSize().width - 25, 25); }
hP is the panel, and mainClass is a frame..
please tell me why the labels and buttons still show background :/