public void mousePressed(MouseEvent e) { super.mousePressed(e); // code to respond to mouse button pressed: // ------------------------------------------------------------------ // ------------------------------------------------------------------ }