public void windowActivated(WindowEvent e) { SparkManager.getNativeManager().stopFlashing(frame); } });
public void stopShake() { shakeTimer.stop(); window.setLocation(naturalLocation); window.repaint(); SparkManager.getNativeManager().stopFlashing(window); }
/** * Checks to see if the <code>ChatFrame</code> should stop flashing. * * @param component the component that should be notified. */ public void stopFlashing(final Component component) { SwingUtilities.invokeLater( () -> { try { // Stop the flashing SparkManager.getNativeManager().stopFlashing(chatFrame); // Notify decorators SparkManager.getChatManager().notifySparkTabHandlers(component); } catch (Exception ex) { Log.error("Could not stop flashing because " + ex.getMessage(), ex); } } ); }