Just looked at setBackground() in JComponent…
public void setBackground( Color bg )
{
Color oldBg = getBackground();
super.setBackground(bg);
if( (oldBg != null) ? !oldBg.equals(bg) : ((bg != null) && bg.equals(oldBg)) )
{
repaint();
}
}
Any idea why you would call bg.equals(oldBg) when you KNOW that oldBg is null and bg is not???
I know this won’t cost much… but it just seems sloppy.