Class TimerPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TimerPanel extends JPanel
See Also:
  • Field Details

    • timerLabel

      protected JLabel timerLabel
    • stimer

      protected Timer stimer
    • duration

      protected int duration
    • due

      protected Runnable due
    • ticker

      protected Consumer<TimerPanel> ticker
    • oldback

      protected Color oldback
  • Constructor Details

  • Method Details

    • start

      public void start(int dur)
    • stop

      public void stop()
    • setDuration

      public void setDuration(int dur)
    • getDuration

      public int getDuration()
      Returns:
      the duration
    • main

      public static void main(String[] args)