This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 242786
Collapse All | Expand All

(-)notifications/src/org/netbeans/modules/notifications/FlashingIcon.java (-1 / +5 lines)
Lines 58-63 Link Here
58
import java.awt.image.BufferedImage;
58
import java.awt.image.BufferedImage;
59
import java.beans.PropertyChangeEvent;
59
import java.beans.PropertyChangeEvent;
60
import java.beans.PropertyChangeListener;
60
import java.beans.PropertyChangeListener;
61
import java.util.logging.Level;
62
import java.util.logging.Logger;
61
import javax.swing.BorderFactory;
63
import javax.swing.BorderFactory;
62
import javax.swing.Icon;
64
import javax.swing.Icon;
63
import javax.swing.ImageIcon;
65
import javax.swing.ImageIcon;
Lines 203-208 Link Here
203
        if (null != currentNotification) {
205
        if (null != currentNotification) {
204
            if (showBalloon) {
206
            if (showBalloon) {
205
                if (canShowBalloon()) {
207
                if (canShowBalloon()) {
208
                    final int timeoutMillis = Integer.getInteger("nb.notification.balloon.timeout", 3 * 1000);
209
                    Logger.getLogger(FlashingIcon.class.getName()).log(Level.INFO, "Balloon timeoutMillis = " + timeoutMillis);
206
                    SwingUtilities.invokeLater(new Runnable() {
210
                    SwingUtilities.invokeLater(new Runnable() {
207
                        @Override
211
                        @Override
208
                        public void run() {
212
                        public void run() {
Lines 217-223 Link Here
217
                                public void actionPerformed(ActionEvent e) {
221
                                public void actionPerformed(ActionEvent e) {
218
                                    n.markAsRead(true);
222
                                    n.markAsRead(true);
219
                                }
223
                                }
220
                            }, 3 * 1000);
224
                            }, timeoutMillis);
221
                        }
225
                        }
222
                    });
226
                    });
223
                }
227
                }

Return to bug 242786