|
@@ -71,7 +71,7 @@ class UnitGraph extends JPanel implements MouseListener, MouseMotionListener, Co
|
|
@Override
|
|
@Override
|
|
public void mouseDragged(MouseEvent e) {
|
|
public void mouseDragged(MouseEvent e) {
|
|
if (pointDrag) {
|
|
if (pointDrag) {
|
|
- pointList[tempP].setLocation(e.getX(), e.getY());
|
|
|
|
|
|
+ pointList[tempP].setLocation(pointList[TempP].getX(), e.getY());
|
|
System.out.println("drag");
|
|
System.out.println("drag");
|
|
}
|
|
}
|
|
repaint();
|
|
repaint();
|