Class TextFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class TextFrame extends JFrame
See Also:
  • Constructor Details

    • TextFrame

      public TextFrame()
      Constructs an empty TextFrame.
    • TextFrame

      public TextFrame(String resourceName)
      Constructs the TextFrame with the given html resource.
      Parameters:
      resourceName - String
    • TextFrame

      public TextFrame(String resourceName, Class<?> type)
      Constructs the HTMLFrame with the given html resource of the given type. The location is relative to the given type.
      Parameters:
      resourceName - String
      type -
  • Method Details

    • getTextPane

      public JTextPane getTextPane()
    • enableHyperlinks

      public void enableHyperlinks()
      Enables hyperlinks. Hyperlink anchors load in the text pane.
    • enableDesktopHyperlinks

      public void enableDesktopHyperlinks()
      Enables hyperlinks. Hyperlink anchors load in the native browser.
    • disableHyperlinks

      public void disableHyperlinks()
      Enables hyperlinks. Hyperlink anchors load in the native browser.