/* JRG, the Resource Geology Seismic Processing System for Java, and Viewmat for Java are Copyright 1998, 1999 by John N. Louie The software and methods here are the subject of academic research, not commercial products. I would like to know what use you make of my methods, and have your feedback on their success or failure. Also, by letting me know who you are, I can inform you if bugs or errors are discovered. Please send me an email message with: your name and email address; whether you are a student or faculty member, consultant or employee; the name of your university or company, and department; and a sentence or two describing what use you intend to make of these methods. Send your message to louie@seismo.unr.edu */ import java.awt.*; import java.awt.event.*; public class ViewmatNotice extends Dialog implements ActionListener { TextArea Note; Button ok; Panel pp; public void actionPerformed(ActionEvent e) { /*String label = e.getActionCommand(); this.setVisible(false);*/ dispose(); } /* Constructor */ ViewmatNotice(ViewmatFrame f, String Title, String Notice) { super(f); this.setModal(false); this.pp = new Panel(new FlowLayout()); pp.setSize(550, 150); this.Note = new TextArea(Notice, 6, 58); pp.add(Note); ok = new Button("OK"); pp.add(ok); ok.addActionListener(this); pp.validate(); this.setSize(550, 200); this.add(pp); this.setTitle(Title); this.setVisible(true); f.centerComp(this); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose(); } }); } }