Chris Johnson, Index
Frames
/*
* A frame
* Author: Chris Johnson (johnson@dcs.gla.ac.uk), revised 11/10/98
* Produces a warning window on the screen
* Beware - there is no way of closing the frame!
*/
import java.awt.*;
public class SimpleWarningFrame extends Frame {
static private final int frame_height = 150;
static private final int frame_width = 250;
public SimpleWarningFrame () {
setBackground(Color.red);
setForeground(Color.black);
}
public static void main (String[] args){
Frame f= new SimpleWarning();
f.setTitle("Warning");
f.resize(frame_width, frame_height);
f.show(true);
}
}