Description: This code displays a basic HTML viewer with a vertical scroll bar. It does not support hyperlinks and other more advanced features. Its purpose is to display small to modest size html help files from within an application program.
Copyright: Copyright (c) 2011
Company: This code is placed in the public domain for un-restricted use. The user is totally responsible for verifying the correct operation of the code, or adapted code, in their application.
Constructor Detail |
public HTMLviewer(java.lang.String filePath, java.lang.String fileName)
The filePath\fileName string is displayed in the Dialog
title bar.
When building the filePath string, suggest using:
filePath = System.getProperty("user.dir") +"\\";
or
filePath = System.getProperty("user.dir") + System.getProperty("file.separator");
A valid URL would be file:c:\MicroMap\MicorMapLog.html
filePath
- The full path to the HTML file ending with a file seperator. fileName
- The full file name with .html or .htm extensionMethod Detail |
public java.lang.String toString()