首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

JButton变颜色

2012-12-15 
JButton变颜色求助if(floorlift[i].LiftPlace){upButton[floor].setBackground(Color.GREEN)try{lift[i

JButton变颜色求助
if(floor==lift[i].LiftPlace)
{
upButton[floor].setBackground(Color.GREEN);
try
        {
        lift[i].floorButton[floor][1].setBackground(Color.WHITE);
Thread.sleep(1000);
}catch(InterruptedException e)
{
e.getSuppressed();
}
lift[i].floorButton[floor][1].setBackground(Color.BLACK);
return;
}
为什么button的颜色直接变黑了
[解决办法]
该回复于2012-11-23 08:40:29被管理员删除

热点排行