Package javax.swing

Examples of javax.swing.Timer.stop()


                        Timer t = getTimer();
                        if (t != null) {
                            if (check.isSelected()) {
                                t.restart();
                            } else {
                                t.stop();
                            }
                        }
                    }
                });
                timerButton.setToolTipText("<HTML><BODY>Reload the map data from the original source at specified intervals.</BODY></HTML>");
View Full Code Here


            if (getModel().isArmed()
                && !timer.isRunning()) {
              timer.restart();
            } else if (!getModel().isArmed()
                       && timer.isRunning()) {
              timer.stop();
           
          }
        });
      setFocusable(false);
      setBorder(null);
View Full Code Here

    Point location = component.getLocation();
    int currentX = location.x;
    int currentY = location.y;
    if (currentX == x && currentY == y) {
      timer.stop();
    } else if (numSteps <= 1) {
      component.setLocation(x, y);
      done();
    } else {
      int diffX = x - currentX;
View Full Code Here

    final Timer timer = new Timer(1500, null);
    final ActionListener listener = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        DownloadProgressWindow.this.dispose();
        timer.stop();
      }
    };
    timer.addActionListener(listener);
    timer.start();
View Full Code Here

    while (!stop) {
      Thread.sleep(200);
    }

    ageTimer.stop();
    ec.stopAllThreads();
    if (lastDetailed == null) {
      System.out.println(messages.getString("cli.noBuild"));
    } else {
      if (onlyOutputFinal) {
View Full Code Here

      }
    catch (InterruptedException iex)
      {
      }

    t.stop();

    double S = 0;
    long d;
    StringBuffer series = new StringBuffer();
View Full Code Here

  /** Disarms the timer and removes the <code>ChangeListener</code> */
  public void uninstallUI(JComponent c) {
    super.uninstallUI(c);
    Timer timer = (Timer) c.getClientProperty(REPAINTER_KEY);
    timer.stop();
    c.repaint();
  }

  static class RepaintListener implements ActionListener {
    WeakReference reference;
View Full Code Here

      {
        public void actionPerformed(ActionEvent e)
        {
          if (isExpanded(lastTreePath)) collapsePath(lastTreePath);
          else expandPath(lastTreePath);
          timer.stop();
        }
      });

      public void mousePressed(MouseEvent e)
      {
View Full Code Here

              lastTreePath = selPath;
              //check if double or single mouseclick, needed
              // because double click= 2 single clicks
              if (timer.isRunning())
              {
                timer.stop();
                sendChat(jidStatus);
              }
              else
              {
                timer.restart();
View Full Code Here

           
            windowsInstallerExec.install();
           
            windowsInstallerExec.dispose();
           
            t.stop();
          }
          else if (InstallationWizard.CURRENT_OS == InstallationWizard.OS_UNIX)
          {
            UnixInstallerExec unixInstallerExec = new UnixInstallerExec(
                installationWizard.getJavaHome(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.