Moving line using Java GUI Source Code