# HG changeset patch # User Venkat R. Akkineni # Date 1407008401 18000 # Sat Aug 02 14:40:01 2014 -0500 # Node ID 6f3c4219e6e6e29412cc5938a4987c447aad4059 # Parent 441dfac540def091dd01e3d442e63d63c95b1ba5 Autocommit of backout changeset for 441dfac540de diff --git a/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java b/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java --- a/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java +++ b/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 - } }