Repositioned revalidate and repaint in GUI