FileDocCategorySizeDatePackage
CodeBean.javaAPI DocExample799Sun Feb 20 21:38:14 GMT 2000com.darwinsys.codebean

CodeBean

public class CodeBean extends TextArea implements Serializable
Create a Text Insert from a file.

Fields Summary
protected String
fileName
protected Font
myFont
Constructors Summary
public CodeBean()

		super("", 20, 80, SCROLLBARS_NONE);

		if (myFont == null) {
			myFont = new Font("Courier", Font.BOLD, 10);
		}
		setFont(myFont);
		setForeground(Color.red);
		setText("\nWould load " + fileName + "\nNOW.");
	
Methods Summary
public java.lang.StringgetFileName()

		return fileName;
	
public static voidmain(java.lang.String[] args)

		Frame f = new Frame("CodeBean Demo");
		CodeBean cb = new CodeBean();
		cb.setFileName("TESTING 1 2 3");
		f.add(cb);
		f.pack();
		f.setVisible(true);
	
public voidsetFileName(java.lang.String _fileName)

		fileName = _fileName;