示例#1
0
 public void setGoldOn(boolean t) {
   goldBlink = false;
   goldOn = t;
   goldTimer.stop();
   goldLabel.setOpaque(true);
   if (t) colorGoldOn();
   else colorGoldOff();
 }
示例#2
0
 public void setBlueOn(boolean t) {
   blueBlink = false;
   blueOn = t;
   blueTimer.stop();
   blueLabel.setOpaque(true);
   if (t) colorBlueOn();
   else colorBlueOff();
 }
示例#3
0
 public void setGoldBlink(int dwell) {
   goldBlink = true;
   goldOn = true;
   goldTimer.stop();
   goldTimer.setInitialDelay(dwell);
   goldTimer.setDelay(dwell);
   goldTimer.start();
   goldLabel.setOpaque(true);
   colorGoldOn();
 }
示例#4
0
 public void setBlueBlink(int dwell) {
   blueBlink = true;
   blueOn = true;
   blueTimer.stop();
   blueTimer.setInitialDelay(dwell);
   blueTimer.setDelay(dwell);
   blueTimer.start();
   blueLabel.setOpaque(true);
   colorBlueOn();
 }
示例#5
0
 void colorGoldOn() {
   goldLabel.setBackground(java.awt.Color.yellow.brighter().brighter());
 }
示例#6
0
 void colorGoldOff() {
   goldLabel.setBackground(java.awt.Color.lightGray);
 }
示例#7
0
 void colorBlueOn() {
   blueLabel.setBackground(java.awt.Color.blue.brighter().brighter());
 }
示例#8
0
 void colorBlueOff() {
   blueLabel.setBackground(java.awt.Color.lightGray);
 }