Class HtmlPanel

    • Constructor Detail

      • HtmlPanel

        public HtmlPanel()
        Constructs a new HtmlPanel.
      • HtmlPanel

        public HtmlPanel​(String text)
        Constructs a new HtmlPanel with the given HTML text.
        Parameters:
        text - the text to display
    • Method Detail

      • build

        protected final void build()
      • getEditorPane

        public JEditorPane getEditorPane()
        Replies the editor pane used internally to render the HTML text.
        Returns:
        the editor pane used internally to render the HTML text.
      • setText

        public final void setText​(String text)
        Sets the current text to display. text is a html fragment. If null, empty string is assumed.
        Parameters:
        text - the text to display