A criminal with a long record told a judge he is determined to change as he was jailed again.