Frame和JFrame设置背景

JFrame设置背景颜色的时候,有时候要通过JFrame.getContentPane().setBackground(Color.RED),

Frame则直接通过setBackground(Color.RED);

posted @ 2011-10-13 08:18  xiao秋  阅读(243)  评论(0编辑  收藏  举报