The list is using the passed object's toString
method for display. So, if you want to display color names, just add a name variable, override the toString
method and return the name of the color.
public class Color {
private int id;
private int name;
private String strName;
public String toString(){return this.strName;}
//getter setter
}