Example #1
0
 public void setGoldOn(boolean t) {
   goldBlink = false;
   goldOn = t;
   goldTimer.stop();
   goldLabel.setOpaque(true);
   if (t) colorGoldOn();
   else colorGoldOff();
 }
Example #2
0
 public void setBlueOn(boolean t) {
   blueBlink = false;
   blueOn = t;
   blueTimer.stop();
   blueLabel.setOpaque(true);
   if (t) colorBlueOn();
   else colorBlueOff();
 }
Example #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();
 }
Example #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();
 }
Example #5
0
 void colorGoldOn() {
   goldLabel.setBackground(java.awt.Color.yellow.brighter().brighter());
 }
Example #6
0
 void colorGoldOff() {
   goldLabel.setBackground(java.awt.Color.lightGray);
 }
Example #7
0
 void colorBlueOn() {
   blueLabel.setBackground(java.awt.Color.blue.brighter().brighter());
 }
Example #8
0
 void colorBlueOff() {
   blueLabel.setBackground(java.awt.Color.lightGray);
 }