Ignore:
Timestamp:
2013-06-29T01:23:39+02:00 (13 years ago)
Author:
Don-vip
Message:

fix #8827 - HTML rendering differ if run before or after having launched Help Browser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java

    r5886 r6040  
    99import javax.swing.JPanel;
    1010import javax.swing.UIManager;
    11 import javax.swing.text.html.HTMLEditorKit;
    1211import javax.swing.text.html.StyleSheet;
    1312
     
    1918 * blue and they are underlined. There is also a CSS rule for the HTML tag <strong>
    2019 * configured.
    21  *
     20 * @since 2688
    2221 */
    2322public class HtmlPanel extends JPanel {
     
    5049        ss.addRule("a {text-decoration: underline; color: blue}");
    5150        ss.addRule("ul {margin-left: 1cm; list-style-type: disc}");
    52         HTMLEditorKit kit = new HTMLEditorKit();
     51        JosmHTMLEditorKit kit = new JosmHTMLEditorKit();
    5352        kit.setStyleSheet(ss);
    5453        jepMessage.setEditorKit(kit);
Note: See TracChangeset for help on using the changeset viewer.