JLabel默认是透明的,所以不显示背景色,要设置为不透明:http://huangqiqing123.iteye.com/blog/1678208
lab.setBackgroud(Color c)