Open new jframe and close previous jframe with the easy code in java netbeans