Class FxHtmlPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FxHtmlPanel extends AbstractHtmlPanel
AbstractHtmlPanel implementation based on the JavaFX WebView class. That is much smarter than the Swing JEditorPane; in particular it can cope with javascript. It's also a bit less ugly.
Since:
17 Jul 2019
Author:
Mark Taylor
See Also:
  • Constructor Details

    • FxHtmlPanel

      public FxHtmlPanel()
  • Method Details

    • setUrl

      public void setUrl(URL url)
      Description copied from class: AbstractHtmlPanel
      Sets the location which is to be displayed in this panel.
      Specified by:
      setUrl in class AbstractHtmlPanel
      Parameters:
      url - locator of resource to display
    • getUrl

      public URL getUrl()
      Description copied from class: AbstractHtmlPanel
      Returns the location which is currently displayed in this panel.
      Specified by:
      getUrl in class AbstractHtmlPanel
      Returns:
      locator of displayed resource