/* * A frame * * Author: Chris Johnson (johnson@dcs.gla.ac.uk) * Last revision date: 11/10/98 * * Produces a warning window on the screen * AWT version 1.0. */ import java.awt.*; public class SimpleWarning extends Frame { static private final int frame_height = 150; static private final int frame_width = 250; public SimpleWarning () { 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); } }