repaint();
PlotPanel.this.repaint();
	  public void mouseReleased(MouseEvent e) {	    //System.out.println("rel");	    if (m_createShape) {	      if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) {		m_createShape = false;		Graphics g = getGraphics();		g.setColor(Color.black);		g.setXORMode(Color.white);		g.drawRect(((Double)m_shapePoints.elementAt(1)).			   intValue(), 			   ((Double)m_shapePoints.elementAt(2)).intValue(),			   ((Double)m_shapePoints.elementAt(3)).intValue() -			   ((Double)m_shapePoints.elementAt(1)).intValue(), 			   ((Double)m_shapePoints.elementAt(4)).intValue() -			   ((Double)m_shapePoints.elementAt(2)).intValue());				g.dispose();		if (checkPoints(((Double)m_shapePoints.elementAt(1)).				doubleValue(), 				((Double)m_shapePoints.elementAt(2)).				doubleValue()) &&		    checkPoints(((Double)m_shapePoints.elementAt(3)).				doubleValue(), 				((Double)m_shapePoints.elementAt(4)).				doubleValue())) {		  //then the points all land on the screen		  //now do special check for the rectangle		  if (((Double)m_shapePoints.elementAt(1)).doubleValue() <		      ((Double)m_shapePoints.elementAt(3)).doubleValue() 		      &&		      ((Double)m_shapePoints.elementAt(2)).doubleValue() <		      ((Double)m_shapePoints.elementAt(4)).doubleValue()) {		    //then the rectangle is valid		    if (m_shapes == null) {		      m_shapes = new FastVector(2);		    }		    m_shapePoints.setElementAt(new 		      Double(convertToAttribX(((Double)m_shapePoints.					       elementAt(1)).					      doubleValue())), 1);		    m_shapePoints.setElementAt(new 		      Double(convertToAttribY(((Double)m_shapePoints.					       elementAt(2)).					      doubleValue())), 2);		    m_shapePoints.setElementAt(new 		      Double(convertToAttribX(((Double)m_shapePoints.					       elementAt(3)).					      doubleValue())), 3);		    m_shapePoints.setElementAt(new 		      Double(convertToAttribY(((Double)m_shapePoints.					       elementAt(4)).					      doubleValue())), 4);		    		    m_shapes.addElement(m_shapePoints);		    		    m_submit.setText("Submit");		    m_submit.setActionCommand("Submit");		    		    m_submit.setEnabled(true);		    repaint();		  }		}		m_shapePoints = null;	      }	    }	  }