Package javax.swing

Examples of javax.swing.Timer$Task


//    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


            add(Box.createHorizontalGlue());
           
            add(updateButton);
            updateButton.addActionListener(updateAction);
           
            timer = new Timer(1000, updateAction);
        }
View Full Code Here

  private void launchJFileChooser() {
    if (launchDelay == 0) {
      showFileChooser();
      return;
    }
    start(new Timer(launchDelay, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        showFileChooser();
      }
    }));
View Full Code Here

  private void launchDialog() {
    if (launchDelay == 0) {
      showJOptionPane();
      return;
    }
    start(new Timer(launchDelay, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        showJOptionPane();
      }
    }));
View Full Code Here

    return button;
  }

  @RunsInCurrentThread
  void launchWindow() {
    start(new Timer(windowLaunchDelay, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        showWindow(new WindowToLaunch());
      }
    }));
View Full Code Here

  private void launchDialog() {
    if (dialogLaunchDelay == 0) {
      showWindow(new DialogToLaunch());
      return;
    }
    start(new Timer(dialogLaunchDelay, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        showWindow(new DialogToLaunch());
      }
    }));
View Full Code Here

     *
     * @param callPanel the <tt>CallPanel</tt> to close
     */
    public void closeWait(CallPanel callPanel)
    {
        Timer timer
            = new Timer(5000, new CloseCallListener(callPanel));

        timer.setRepeats(false);
        timer.start();
    }
View Full Code Here

        super(new BorderLayout());

        this.call = call;
        this.callWindow = callWindow;

        this.callDurationTimer = new Timer(1000, new CallTimerListener());
        this.callDurationTimer.setRepeats(true);

        // The call duration parameter is not known yet.
        this.setCallTitle(null);
View Full Code Here

        CallPeer callPeer = evt.getSourceCallPeer();

        callPeer.removeCallPeerConferenceListener(this);

        Timer timer = new Timer(5000, new RemovePeerPanelListener(callPeer));

        timer.setRepeats(false);
        timer.start();

        // The call is finished when that last peer is removed.
        if (call.getCallPeerCount() == 0)
            this.stopCallTimer();
    }
View Full Code Here

    lblNotice.setBounds(10, 25, 230, 84);
    add(lblNotice);
   
    setVisible(true);
   
    new Timer(5000, this).start();
  }
View Full Code Here

TOP

Related Classes of javax.swing.Timer$Task

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.