private void customizeLinksStyle() { Document document = getDocument(); if (document instanceof HTMLDocument) { StyleSheet styleSheet = ((HTMLDocument)document).getStyleSheet(); String linkColor = "#" + ColorUtil.toHex(UI.getColor("link.foreground")); styleSheet.addRule("a { color: " + linkColor + "; text-decoration: none;}"); } }
private Color getFillColor() { return UI.getColor("callout.background"); }
private Color getBoundsColor() { return UI.getColor("callout.frame.color"); }
protected Color getVisited() { return UI.getColor("link.visited.foreground"); }
protected Color getActive() { return UI.getColor("link.pressed.foreground"); }
protected Color getNormal() { return UI.getColor("link.foreground"); }
MoreCellRenderer() { setHorizontalAlignment(SwingConstants.LEFT); setForeground(UI.getColor("link.foreground")); }
@Override public void setForeground(Color fg) { super.setForeground(isEnabled() ? UI.getColor("link.foreground") : fg); }