读书人

JButton变颜色

发布时间: 2012-12-15 15:16:03 作者: rapoo

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被管理员删除

读书人网 >J2SE开发

热点推荐