Java Class Assignment Tab Replacer