package simpleIO;import java.awt.*;import java.awt.event.*;public class ErrDialog extends ModalDialog {	public ErrDialog(TextDialog dialog, String message ) {		// Instantiate object		super(dialog);		buildDialog("Try again: " + message);	}			protected void addPanel() {			Panel p = new Panel();		Button ok = new Button("OK");		p.add(ok,BorderLayout.SOUTH);		add(p,BorderLayout.SOUTH);		ok.addActionListener(this);	}		public void actionPerformed(ActionEvent e) {		 dispose();	}	} // ErrDialog		
