3940414243444546474849
public void mouseDown(MouseEvent e, int x, int y) { super.mouseDown(e, x, y); anchor = e.getPoint(); if(area == null){ area = new RectangleFigure(); } area.setDisplayBox(anchor, anchor); drawingView.add(area); drawingView.repairDamage();