import java.applet.*; import java.awt.*; import java.net.*; import java.util.*; //===================================================================== // InspectImage public class InspectImage extends LoadImage { //---------------------------------------------------------- // INIT public void init() { super.init(); } //---------------------------------------------------------- // DESTROY // Called when the applet is being unloaded from the system. // We use it here to "flush" the image. This may result in memory // and other resources being freed quicker than they otherwise would public void destroy() { super.destroy(); } //---------------------------------------------------------- // PAINT // Display the image. public void paint(Graphics g) { super.paint(g); } //---------------------------------------------------------- // UPDATE // We overwrite this method so that it doesn't clear the background // before calling paint(). Makes for less flickering in some situations. public void update(Graphics g) { super.update(g); } // Handle mouse events public boolean mouseDown(Event e, int x, int y) { showStatus("Mouse Down:["+x+","+y+"]"); return true; } }