/** * Sets the hyperlink underline mode. * * @param mode the new hyperlink underline mode * @see HyperlinkSettings */ @Override public void setHyperlinkUnderlineMode(int mode) { super.setHyperlinkUnderlineMode(mode); if (links != null) { for (int i = 0; i < links.size(); i++) { Hyperlink label = links.get(i); label.setUnderlined(mode == UNDERLINE_ALWAYS); } } }
/** * Sets the group foreground and also sets the background of all the currently managed links. * * @param fg the new foreground */ @Override public void setForeground(Color fg) { super.setForeground(fg); isForegroundSet = true; if (links != null) { for (int i = 0; i < links.size(); i++) { Hyperlink label = links.get(i); label.setForeground(fg); } } }
/** * Sets the new active hyperlink foreground for all the links. * * @param newActiveForeground the new active foreground */ @Override public void setActiveForeground(Color newActiveForeground) { super.setActiveForeground(newActiveForeground); isActiveForegroundSet = true; }