Here is an answer to my own question which I found best after many efforts and corrections.
mainComboBox.setButtonCell(
new ListCell
And with required function of getStringField(Object),
public String getStringField(Object o) {
return ((Pesron) o).getName();
}