/**
* Help.java
* This class creates an array of file which are then sent to a
*TextViewer object to be displayed as by TextFileViewer.
* Created: Tue May 18 16:06:02 1999
*
* @author Nathan Stevens
* @version
*/
import java.io.*;
public class Help
{
private TextFileViewer textv;
private File dir = new File("doc");
private File[] hf;
public Help()
{
//set up the files
hf = new File[8];
hf[1] = new File(dir, "contents.txt");
hf[2] = new File(dir, "intro.txt");
hf[3] = new File(dir, "babel.txt");
hf[4] = new File(dir, "mopac.txt");
hf[5] = new File(dir, "gaussian.txt");
hf[6] = new File(dir, "rtool.txt");
hf[7] = new File(dir, "devel.txt");
// now call the TextFileViewer
textv = new TextFileViewer(hf, "Help", 20, 55);
}
}
|