I have an array of objects called procedures. These objects have the attribute int code which I'd like for the JComboBox to display. But instead it displays some other information, such as the directory where these objects were imported from. How do I get it to display only a certain part of the objects in the array that I populate the JComboBox with? Thanks in advance to anyone with an answer.