Change JLabel background colorTag(s): Swing


The JLabel background is transparent by default, so changing the background color doesn't seem to do anything. Do something like this :
aJLabel.setOpaque(true);
aJLabel.setBackground(myColor)

blog comments powered by Disqus