0 Replies - 446 Views - Last Post: 22 February 2011 - 09:57 AM Rate Topic: -----

#1 metric  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 183
  • Joined: 22-May 10

JComboBox with objects

Posted 22 February 2011 - 09:57 AM

Hey guys,

I have a user class which has the following attributes:
String name
String pass
String email.

I have an array of users, rather then making a String array from their names to list in a combo box then when one is selected searching through the User array and comparing the String array to the names in the User array, is there a way I can pass the object array to the combo box and get it to display the names and then when a user selects a one I can get the entire object?

Thanks Metric

Is This A Good Question/Topic? 0
  • +

Page 1 of 1