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的颜色直接变黑了
{
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的颜色直接变黑了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货