lib/browser/awtUtilities/TextFrame.java
author paulson
Thu, 29 Jun 2000 16:50:52 +0200
changeset 9191 300bd596d696
parent 6541 d3ac35b2bfbf
child 33686 8e33ca8832b1
permissions -rw-r--r--
now freezes Vars in order to prevent errors in cases like these: Goal "Suc (x + i + j) + ?q ?ii ?jj + k + x = xxx"; Goal "Suc (x + i + j) = x + f(?q i j) + k"; Goal "Suc (x + i + j) = x + ?q i j + k"; Goal "Suc (?q ?ii ?jj + i + j) + ?rq ?ii ?jj + k + ?q ?ii ?jj = xxx";

/***************************************************************************
  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);
	}
}