Class HTMLViewerDialog

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

public class HTMLViewerDialog extends JDialog implements ActionListener
Dialog using a JEditorPane to display HTML text.
See Also:
  • Constructor Details

    • HTMLViewerDialog

      public HTMLViewerDialog(Frame frame, String title, boolean modal)
      Creates a modal or non-modal HTML viewer dialog with the specified title and the specified owner frame.
      Parameters:
      title - the String to display in the dialog's title bar
      modal - true for a modal dialog, false for one that allows other windows to be active at the same time
      owner - the frame from which the dialog is displayed
  • Method Details

    • setHTML

      public void setHTML(String html)
      Inserts an HTML string into the display pane.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      ActionListener implementation Handles pressing of close button
      Specified by:
      actionPerformed in interface ActionListener