/* // FileName: AboutDialog.java // // Vijay Konkimalla // 07 Dec 95 // // Objective: // Informative Dialog // // $Author: konki $ // $Log: AboutDialog.java,v $ # Revision 1.2 1996/03/11 21:01:02 konki # No Changes # # Revision 1.1 1996/02/18 23:09:17 konki # Initial revision # # Revision 1.1 1996/02/18 23:09:17 konki # Initial revision # // $Id: AboutDialog.java,v 1.2 1996/03/11 21:01:02 konki Exp $ */ package wb; import java.awt.*; import java.lang.*; /** * AboutDialog * General Information Dialog box */ public class AboutDialog extends Dialog { /** * Creates a new instance of AboutDialog box which is "MODAL". However, * some implementation like on win95/NT does not make them true modal * @param top the frame to which this is attached */ public AboutDialog(Frame top) { super(top, "About Dialog", true); Panel p = new Panel(); p.add(new Button("OK")); add("South",p); resize(200,200); } /** * Handler for action events. If the "OK" button is pressed this dialog * box disappears. * @param evt Event to be handled * @param what the object * @return boolean indicating if the event is handled. */ public boolean action( Event evt, Object arg ) { if ("OK".equals(arg)) { dispose(); return true; } return false; } /** * Handler for paint requests. Called by screen refresh thread of * the runtime. * @param g Graphics onto which the update needs to be performed */ public void paint( Graphics g ) { g.setColor(Color.yellow); g.drawString("White Board (MONET)", 50,80); g.setColor(Color.blue); g.drawString(" CERC, WVU", 50,100); g.drawString(" Version 0.1", 50,120); } } /* * End of File: AboutDialog.java */