Class HtmlPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, HyperlinkListener

public class HtmlPanel extends JPanel implements HyperlinkListener
View Html files.
Version:
1.5 12/17/97
Author:
Jeff Dinkins, Tim Prinzing, Don Murray modified for McGUI, John Caron modified for jmet
See Also:
  • Constructor Details

    • HtmlPanel

      public HtmlPanel(JDialog parental, URL url)
      _more_
      Parameters:
      parental -
      url -
  • Method Details

    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent e)
      Notification of a change relative to a hyperlink.
      Specified by:
      hyperlinkUpdate in interface HyperlinkListener
      Parameters:
      e -
    • linkActivated

      protected void linkActivated(URL u)
      Follows the reference in an link. The given url is the requested reference. By default this calls setPage, and if an exception is thrown the original previous document is restored and a beep sounded. If an attempt was made to follow a link, but it represented a malformed url, this method will be called with a null argument.
      Parameters:
      u - the URL to follow
    • showPreviousURL

      public void showPreviousURL()
      Display the previous URL
    • showNextURL

      public void showNextURL()
      Display the next URL
    • updateUrlList

      public void updateUrlList(URL u)
      Update vector of URLs
      Parameters:
      u -
    • setLabel

      public static void setLabel(String label)
      Update the text on the label
      Parameters:
      label -