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.
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;
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() {
public void actionPerformed(ActionEvent e) {
n.markAsRead(true);
}
}, 3 * 1000);
}, timeoutMillis);
});