问题描述
privateGaugecreateIndicator(intmaxValue){//Gaugegauge=newGauge("Ratethemovie:",true,5,1);if(maxValue==Alert.FOREVER){returnnewGauge("看看Guage",false,Gauge.INDEFINITE,Gauge.CONTINUOUS_RUNNING);}finalintmax=maxValue/SECOND;finalGaugeindicator=newGauge("看看Guage",false,max,0);newThread(){publicvoidrun(){intvalue=0;while(value<max){indicator.setValue(value);++value;try{Thread.sleep(1000);}catch(InterruptedExceptione){e.printStackTrace();}}}}.start();returnindicator;}
时间: 2024-12-08 05:14:44