com.atomikos.swing
Class HtmlFrame
java.lang.Object
com.atomikos.swing.HtmlFrame
- All Implemented Interfaces:
- ActionListener, EventListener, HyperlinkListener
public class HtmlFrame
- extends Object
- implements HyperlinkListener, ActionListener
A frame to display an HTML document, and respond to clicks on
hyperlinks by loading the clicked link.
Constructor Summary |
HtmlFrame(URL url,
JFrame parent)
Creates a new window that displays the given URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlFrame
public HtmlFrame(URL url,
JFrame parent)
throws IOException
- Creates a new window that displays the given URL.
- Parameters:
url
- The URL to load.parent
- If in dialog mode, this indicates which parent.
Null means a standalone app.
This determines the behaviour for closing the window.
- Throws:
IOException
hyperlinkUpdate
public void hyperlinkUpdate(HyperlinkEvent e)
- Specified by:
hyperlinkUpdate
in interface HyperlinkListener
- See Also:
HyperlinkListener
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
- See Also:
ActionListener
main
public static void main(String[] args)
- Allows simple retrieval of command-line URL
Copyright © 2011. All Rights Reserved.