lib/browser/awtUtilities/TextFrame.java
author paulson
Mon, 01 Mar 1999 15:57:29 +0100
changeset 6291 2c3f72d9f5d1
parent 3599 89cbba12863d
child 6541 d3ac35b2bfbf
permissions -rw-r--r--
simpler proofs of congruence rules
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     1
/***************************************************************************
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     2
  Title:      Graph/TextFrame.java
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     3
  ID:         $Id$
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     4
  Author:     Stefan Berghofer, TU Muenchen
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     5
  Copyright   1997  TU Muenchen
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     6
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     7
  This class defines a simple text viewer.
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     8
***************************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     9
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    10
package awtUtilities;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    11
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    12
import java.awt.*;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    13
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    14
public class TextFrame extends Frame {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    15
	public boolean action(Event evt,Object obj) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    16
		if (evt.target instanceof Button)
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    17
			hide();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    18
		return true;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    19
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    20
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    21
	public TextFrame(String title,String text) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    22
		super(title);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    23
		TextArea ta=new TextArea(text,200,80);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    24
		ta.setEditable(false);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    25
		add("Center",ta);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    26
		add("South",new Button("Dismiss"));
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    27
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    28
}