public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
timer.setCoalesce(true); timer.start();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocationByPlatform(true); timer.setCoalesce(false); optPane.setMessage(message()); optPane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
public void setCoalesce(boolean coalesce) { timer.setCoalesce(coalesce); }
/** * Creates a new animation. */ public BubbleColorAnimation(){ timer = new Timer( 25, new ActionListener(){ public void actionPerformed( ActionEvent e ) { pulse(); } }); timer.setCoalesce( true ); }
private void setUpExecution() { ActionListener listener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { updatePassId(); } }; timer = new Timer(getPollIntervalMillis(), listener); timer.setCoalesce(false); timer.start(); }
ActionStateUpdater() { timer = new FixIssue29405Timer(150, this); timer.setCoalesce(true); timer.setRepeats(false); }
private AnimationController() { timer.setRepeats(true); timer.setCoalesce(true); //we need to dispose the controller on l&f change UIManager.addPropertyChangeListener(this); }
ActionStateUpdater() { timer = new FixIssue29405Timer(150, this); timer.setCoalesce(true); timer.setRepeats(false); }
ActionStateUpdater() { timer = new FixIssue29405Timer(150, this); timer.setCoalesce(true); timer.setRepeats(false); }
ActionStateUpdater() { timer = new FixIssue29405Timer(150, this); timer.setCoalesce(true); timer.setRepeats(false); }
/** * Creates and configures a {@code Timer} object. * * @param fps the frames per second * @return a {@code Timer} with the specified frame rate */ private Timer createTimer(int fps) { int delay = 1000 / fps; Timer aTimer = new Timer(delay, this); aTimer.setInitialDelay(0); aTimer.setCoalesce(true); return aTimer; }
public final void startWaitCursor() { waitCursorTimer = new Timer(1000, new ActionListener() { public void actionPerformed(ActionEvent ae) { setToWaitCursor(true); } }); waitCursorTimer.setCoalesce(false); waitCursorTimer.setInitialDelay(1); waitCursorTimer.setRepeats(true); waitCursorTimer.start(); }
SwingFuture(Callable<V> call, long initialDelay, long interval, TimeUnit unit) { super(call); timer = new javax.swing.Timer(1, this); timer.setInitialDelay(Math.max(1, (int) unit.toMillis(initialDelay))); // set the between-event delay timer.setDelay(Math.max(1, (int) unit.toMillis(interval))); // Don't coalesce events - some code will depend on the timer being // fired every time. timer.setCoalesce(false); }
private void requestCycle(final int x, final int y) { cancelCycleRequest(); // int delay = MouseUtils_RAVE.getDoubleClickInterval(); int delay = DOUBLE_CLICK_DELTA; cycleTimer = new Timer(delay, new ActionListener() { public void actionPerformed(ActionEvent evt) { cycleTimer = null; cycleSelection(x, y); } }); cycleTimer.setRepeats(false); cycleTimer.setCoalesce(true); cycleTimer.start(); }
/*************************************************************************** * * **************************************************************************/ public FadingPanel (final JComponent content) { this.content = content; transitionTimer = new Timer(0, transitionTimerListener); transitionTimer.setCoalesce(true); transitionTimer.setDelay(1000 / FRAMES_PER_SECOND); setLayout(cardLayout); add(content, CONTENTS); add(transitionComponent, TRANSITION); setDoubleBuffered(true); setOpaque(false); }