com.croftsoft.core.gui
Class GuiCreator

java.lang.Object
  extended by com.croftsoft.core.gui.GuiCreator

public final class GuiCreator
extends Object

Creates pre-configured GUI widgets.

Useful for instantiating GUI widgets without creating a subclass.

Since:
2001-07-29
Version:
2001-09-21
Author:
David Wallace Croft

Method Summary
static JEditorPane createHtmlPane(String html, HyperlinkListener hyperlinkListener)
          Creates a JEditorPane for displaying HTML text.
static JEditorPane createHtmlPane(URL initialPage, HyperlinkListener hyperlinkListener)
          Creates a JEditorPane for displaying HTML text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createHtmlPane

public static JEditorPane createHtmlPane(String html,
                                         HyperlinkListener hyperlinkListener)
Creates a JEditorPane for displaying HTML text.

The pane in non-editable and the caret position is set to zero.

Reference:
Kim Topley, Core Swing: Advanced Programming, 2000, Chapter 4 "JEditorPane and the Swing HTML Package", Section "Hypertext Links", p476.

Parameters:
hyperlinkListener - May be null.

createHtmlPane

public static JEditorPane createHtmlPane(URL initialPage,
                                         HyperlinkListener hyperlinkListener)
                                  throws IOException
Creates a JEditorPane for displaying HTML text.

The pane in non-editable and the caret position is set to zero.

Reference:
Kim Topley, Core Swing: Advanced Programming, 2000, Chapter 4 "JEditorPane and the Swing HTML Package", Section "Hypertext Links", p476.

Parameters:
hyperlinkListener - May be null.
Throws:
IOException - If URL is null or cannot be accessed.

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)