/** * Converts our extended html syntax (allowing UIManager color keys and omitting opening html tags * into standard html. Only called if the lightweight html renderer is disabled and we're running with * a standard JLabel UI * * @param s The string that is the text of the label * @return The same string converted to standard HTML Swing's rendering infrastructure will know what to do * with */ private String ensureHtmlTags(String s) { s = ensureLegalFontColorTags(s); if (!s.startsWith("<HTML") && !s.startsWith("<html")) { //NOI18N s = "<html>" + s + "</html>"; //NOI18N } return s; }
/** * Converts our extended html syntax (allowing UIManager color keys and omitting opening html tags * into standard html. Only called if the lightweight html renderer is disabled and we're running with * a standard JLabel UI * * @param s The string that is the text of the label * @return The same string converted to standard HTML Swing's rendering infrastructure will know what to do * with */ private String ensureHtmlTags (String s) { s = ensureLegalFontColorTags(s); if (!s.startsWith("<HTML") && !s.startsWith("<html")) { //NOI18N s = "<html>" + s + "</html>"; //NOI18N } return s; }
/** * Converts our extended html syntax (allowing UIManager color keys and omitting opening html tags * into standard html. Only called if the lightweight html renderer is disabled and we're running with * a standard JLabel UI * * @param s The string that is the text of the label * @return The same string converted to standard HTML Swing's rendering infrastructure will know what to do * with */ private String ensureHtmlTags (String s) { s = ensureLegalFontColorTags(s); if (!s.startsWith("<HTML") && !s.startsWith("<html")) { //NOI18N s = "<html>" + s + "</html>"; //NOI18N } return s; }