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.
NOTE: This JavaDoc file was post processed with Microsoft FrontPage and regenerating the file will cause the graphics and format changes to be lost.
Constructor Detail |
public TextViewer(java.lang.String filePath, java.lang.String fileName)
Dialog
or Frame
object. The constructor concatinates the filePath + fileName strings to form the full path\filename string which is used to load the text file. It's intended purpose is for viewing local disk based text files. The viewer is non-modal so the user can scroll/read the contents while still working with the application program.
The filePath and fileName are displayed as the title of the viewer.
When building the filePath string, suggest using:
filePath = System.getProperty("user.dir") +"\\";
or
filePath = System.getProperty("user.dir") + System.getProperty("file.separator");
A valid path\filename would be C:\MicroMap\MicorMapLog.txt
filePath
- The full path to the text file ending with a file seperator. fileName
- The full file name with a .txt extensionMethod Detail |
public java.lang.String toString()