{ } public void mouseEntered(MouseEvent e) { } public void updateLocation(MouseEvent e) { rect.setLocation(preX + e.getX(), preY + e.getY()); if (checkRect()) { ShapeMover.label.setText(rect.getX() + ", " + rect.getY()); } else { ShapeMover.label.setText("drag inside ...