public void setGoldOn(boolean t) { goldBlink = false; goldOn = t; goldTimer.stop(); goldLabel.setOpaque(true); if (t) colorGoldOn(); else colorGoldOff(); }
public void setBlueOn(boolean t) { blueBlink = false; blueOn = t; blueTimer.stop(); blueLabel.setOpaque(true); if (t) colorBlueOn(); else colorBlueOff(); }
public void setGoldBlink(int dwell) { goldBlink = true; goldOn = true; goldTimer.stop(); goldTimer.setInitialDelay(dwell); goldTimer.setDelay(dwell); goldTimer.start(); goldLabel.setOpaque(true); colorGoldOn(); }
public void setBlueBlink(int dwell) { blueBlink = true; blueOn = true; blueTimer.stop(); blueTimer.setInitialDelay(dwell); blueTimer.setDelay(dwell); blueTimer.start(); blueLabel.setOpaque(true); colorBlueOn(); }
void colorGoldOn() { goldLabel.setBackground(java.awt.Color.yellow.brighter().brighter()); }
void colorGoldOff() { goldLabel.setBackground(java.awt.Color.lightGray); }
void colorBlueOn() { blueLabel.setBackground(java.awt.Color.blue.brighter().brighter()); }
void colorBlueOff() { blueLabel.setBackground(java.awt.Color.lightGray); }