edu.ucsb.nceas.morpho.framework
Class HTMLBrowser

java.lang.Object
  extended byedu.ucsb.nceas.morpho.framework.HTMLBrowser

public class HTMLBrowser
extends java.lang.Object

This class is a 'quick and dirty' HTML browser written in Java. It is designed as a simple means of displaying HTML help files within a Java application (Thus avoiding the problem of launching a local browser in a platform independent manner.)


Constructor Summary
HTMLBrowser()
          Creates a new instance of JFrame1 with the given title.
HTMLBrowser(MorphoFrame frame, boolean showLocationBar)
           
HTMLBrowser(java.lang.String sTitle)
          Creates a new instance of JFrame1 with the given title.
 
Method Summary
 void loadNewPage(java.lang.Object page)
           
static void main(java.lang.String[] args)
          The entry point for this application.
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLBrowser

public HTMLBrowser()
Creates a new instance of JFrame1 with the given title.


HTMLBrowser

public HTMLBrowser(java.lang.String sTitle)
Creates a new instance of JFrame1 with the given title.

Parameters:
sTitle - the title for the new frame.

HTMLBrowser

public HTMLBrowser(MorphoFrame frame,
                   boolean showLocationBar)
Parameters:
frame - MorphoFrame
showLocationBar - boolean show or hide the url textfield and go button
Method Detail

loadNewPage

public void loadNewPage(java.lang.Object page)
Parameters:
page - Object can be a URL object or a String url

setVisible

public void setVisible(boolean visible)

main

public static void main(java.lang.String[] args)
The entry point for this application. Sets the Look and Feel to the System Look and Feel. Creates a new JFrame1 and makes it visible.

Parameters:
args - String[]


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.