com.atomikos.swing
Class HtmlFrame

java.lang.Object
  extended by 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.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void hyperlinkUpdate(HyperlinkEvent e)
           
static void main(String[] args)
          Allows simple retrieval of command-line URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.