Fixing thread in jump method of JPanel