Beispiel #1
0
 @Override
 public void updateScreen() {
   if (model.isPolling()) {
     Color color = new Color(0, 0f, 0);
     double darkness = 0;
     long t = System.currentTimeMillis() % 1000;
     darkness = Math.cos(t * 2 * Math.PI / 1000) * 0.2 + 0.2;
     color.setBlue(1f - (float) darkness);
     buttonRefresh.setDisabledColor(color);
   }
   if (System.currentTimeMillis() - confirmationTimeout > 5000) {
     buttonDelete.setText("Delete");
   }
   if (System.currentTimeMillis() - confirmationTimeout < 500) {
     buttonDelete.setEnabled(false);
   } else if (!buttonDelete.getText().equals("Delete")) {
     buttonDelete.setEnabled(true);
   }
   super.updateScreen();
 }
 /** Called from the main game loop to update the screen. */
 public void updateScreen() {
   super.updateScreen();
   --this.refreshTimer;
 }
 public void updateScreen() {
   super.updateScreen();
   field_6454_o--;
 }
 /** Called from the main game loop to update the screen. */
 public void updateScreen() {
   super.updateScreen();
 }