public void mousePressed(MouseEvent e) { Message(null, null, 1); Message(null, null, 2); Message(null, null, 3); if (EODtag) { deal(); update(Applet.this.getGraphics()); return; } Location l = findloc(e); if (l == null) return; if (l == button) { ShowSet(); return; } l.toggle(); update(Applet.this.getGraphics()); if (num_selected >= 3) { CheckSet(); } lastloc = l; }