Graphics g = getGraphics();
Graphics g = PlotPanel.this.getGraphics();
	  public void mouseDragged(MouseEvent e) {	    //check if the user is dragging a box	    if (m_createShape) {	      if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) {		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());				m_shapePoints.setElementAt(new Double(e.getX()), 3);		m_shapePoints.setElementAt(new Double(e.getY()), 4);				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();	      }	    }	  }