Package javax.swing

Examples of javax.swing.Timer$FiringEventRunnable


    protected void doInit()
    {
        setBorder(new CompoundBorder(BorderFactory.createEmptyBorder(0, 2, 0, 0), BorderFactory.createEtchedBorder()));
        setFont(getFont().deriveFont(11.0f));
        doUpdateDisplay();
        m_timer = new Timer(1000, new ActionListener()
        {
            public void actionPerformed(ActionEvent ev)
            {
                doUpdateDisplay();
            }
View Full Code Here


        dia.addWindowListener(new WindowAdapter()
        {
            @Override
            public void windowActivated(WindowEvent ev)
            {
                Timer timer = new Timer(50, new ActionListener()
                {
                    public void actionPerformed(ActionEvent ev)
                    {
                       passwordField.requestFocusInWindow();
                    }
                });
                timer.setRepeats(false);
                timer.start();
            }
        });

        dia.setVisible(true);
        return ((Integer)pane.getValue() == JOptionPane.OK_OPTION ? new String (passwordField.getPassword()) : null);
View Full Code Here

  private final Timer timer;
  private long lastMillis;
  private Callback callback;

  public DrawingCanvas() {
    timer = new Timer(1000/60, loop);
    timer.setRepeats(true);
  }
View Full Code Here

   *  directly anyway and therefore can never show up for real. */
  private String keyStr = "!";

  /** Setup the timer. */
  public SVEventHandler(SVWindow wdw) {
    timer = new Timer(1000, this);
    svWindow = wdw;
  }
View Full Code Here

        this.app = app;
        this.controlWindow = mcw;

        initComponents();

        progressTimer = new Timer(1000, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                updateProgressDisplay();
            }
        });
View Full Code Here

  public DefaultNavigation(ViewerFrame viewerFrame, RenderOptions renderOptions) {
   
    this.viewerFrame = viewerFrame;
    this.renderOptions = renderOptions;
   
    timer = new Timer(20, KEYBOARD_TASK);
  }
View Full Code Here

  /**
   * Creates an {@link AnimationTimer} with an specified frame rate
   * @param fps {@link FrameRate} we want to use for this {@link AnimationTimer}
   */
  public AnimationTimer(FrameRate fps) {
        fTimer = new Timer(fps.delay(), new TimerActionListener());
  }
View Full Code Here

  public PopupTriggerMonitor( Component c )
  {
    this.c  = c;
    c.addMouseListener( this );
    timer  = new Timer( DEFAULT_DELAY, this );
    timer.setRepeats( false );
  }
View Full Code Here

//        peakArgs[0] = new Double( MathUtil.linearToDB( 1.0 / maxPeak ));
//        lbPeak.setText( frmtPeak.format( peakArgs ));
//      }
//    };
//    runPeakUpdate.run();  // initially reset peak hold
    meterTimer  = new Timer( 100, new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        final float    value    = docFrame.getMaxMeterHold();
        final boolean  valueClip  = value > -0.2f;
        peakArgs[0] = new Float( value );
View Full Code Here

//    this.add( Box.createHorizontalGlue() );
   
    // --- Listener ---
    new DynamicAncestorAdapter( this ).addTo( this );

    cueTimer = new Timer( 25, new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        cuePos = Math.max( 0, Math.min( doc.timeline.getLength(), cuePos + (long) (cueStep * rate) / 1000 ));
//          doc.getUndoManager().addEdit( TimelineVisualEdit.position( this, doc, cuePos ));
        doc.timeline.editPosition( this, cuePos );
      }
    });
   
    playTimer = new Timer( 27, new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        lbTime.setTime( new Double( transport.getCurrentFrame() / rate ));
      }
    });
View Full Code Here

TOP

Related Classes of javax.swing.Timer$FiringEventRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.