/* 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.applet.Applet; public class RgApplet extends Applet { boolean inited; static Color ltgray; Canvas cvs; public void paint(Graphics g) { if (!inited) { initRg(g); inited = true; } paintRg(g); } public void init() { inited = false; cvs = null; ltgray = new Color(220, 220, 220); setBackground(ltgray); } public void showStatus(String note) { this.getAppletContext().showStatus(note); } public void initRg(Graphics g) { cvs = new Canvas(); this.add(cvs); } public void paintRg(Graphics g) { cvs.paint(g); } }