Moving line using Java GUI