/** * Retrieves the animation state for the specified button. * * @param jButton * Button. * @return <code>true</code> if the specified button is being animated, * <code>false</code> otherwise. */ public static boolean isAnimating(JButton jButton) { RootPaneDefaultButtonTracker tracker = trackers.get(jButton); if (tracker == null) { return false; } return tracker.isRunning(); }
/** * Retrieves the animation state for the specified button. * * @param jButton * Button. * @return <code>true</code> if the specified button is being animated, * <code>false</code> otherwise. */ public static boolean isAnimating(JButton jButton) { RootPaneDefaultButtonTracker tracker = trackers.get(jButton); if (tracker == null) { return false; } return tracker.isRunning(); }