# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/matteo/work/Streamsim/NetBeans/releases # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: notifications/src/org/netbeans/modules/notifications/FlashingIcon.java --- notifications/src/org/netbeans/modules/notifications/FlashingIcon.java +++ notifications/src/org/netbeans/modules/notifications/FlashingIcon.java @@ -58,6 +58,8 @@ import java.awt.image.BufferedImage; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.swing.BorderFactory; import javax.swing.Icon; import javax.swing.ImageIcon; @@ -203,6 +205,8 @@ if (null != currentNotification) { if (showBalloon) { if (canShowBalloon()) { + final int timeoutMillis = Integer.getInteger("nb.notification.balloon.timeout", 3 * 1000); + Logger.getLogger(FlashingIcon.class.getName()).log(Level.INFO, "Balloon timeoutMillis = " + timeoutMillis); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { @@ -217,7 +221,7 @@ public void actionPerformed(ActionEvent e) { n.markAsRead(true); } - }, 3 * 1000); + }, timeoutMillis); } }); }