lib/browser/awtUtilities/TextFrame.java
author krauss
Tue, 06 Jun 2006 09:28:24 +0200
changeset 19782 48c4632e2c28
parent 6541 d3ac35b2bfbf
child 33686 8e33ca8832b1
permissions -rw-r--r--
HOL/Tools/function_package: imporoved handling of guards, added an example

/***************************************************************************
  Title:      Graph/TextFrame.java
  ID:         $Id$
  Author:     Stefan Berghofer, TU Muenchen
  Copyright   1997  TU Muenchen

  This class defines a simple text viewer.
***************************************************************************/

package awtUtilities;

import java.awt.*;
import java.awt.event.*;

public class TextFrame extends Frame implements ActionListener {
	public void actionPerformed(ActionEvent evt) {
		setVisible(false);
	}

	public TextFrame(String title,String text) {
		super(title);
		TextArea ta = new TextArea(text,200,80);
		Button bt = new Button("Dismiss");
		bt.addActionListener(this);
		ta.setEditable(false);
		add("Center", ta);
		add("South", bt);
	}
}