Chris Johnson, Index
java.AWT.Container
/* A frame
* Author: Chris Johnson (johnson@dcs.gla.ac.uk), 11/10/98
* Produces warning on the screen, beware, no way of closing 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);
}
}