--- a/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java +++ a/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java @@ -60,7 +60,6 @@ import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; -import javax.swing.UIManager; import org.netbeans.modules.notifications.center.NotificationCenterManager; import org.openide.awt.Notification; import org.openide.awt.NotificationDisplayer.Category; @@ -239,11 +238,8 @@ } private JComponent createDetails(String text, ActionListener action) { - - Color c = UIManager.getColor("nb.html.link.foreground") == null ? Color.BLUE : UIManager.getColor("nb.html.link.foreground"); - try { - text = (action == null ? "" : "") + XMLUtil.toElementContent(text); //NOI18N + text = (action == null ? "" : "") + XMLUtil.toElementContent(text); //NOI18N } catch (CharConversionException ex) { throw new IllegalArgumentException(ex); } @@ -285,13 +281,4 @@ private JComponent createDate(Calendar dateCreated) { return new JLabel(Utils.getFullFormatedDate(dateCreated)); } - - private static String toRgbText(int rgb) { - if (rgb > 0xFFFFFF) - rgb = 0xFFFFFF; - if (rgb < 0) - rgb = 0; - String str = "000000" + Integer.toHexString(rgb); //NOI18N - return "#" + str.substring(str.length() - 6); //NOI18N - } }