title: How do I change and instance variable for an object which the user selects from a combobox?
body: <p>I'm a huge noob. I just finished a java textbook and now I'm making a game as a learning experiment. I'm stumped... here' my problem:</p>
  
  <p>I have six objects created from the Person class.</p>
  
  <p>Each object has a boolean variable, automatically set to false.</p>
  
  <p>I can select each Person object from a combo-box and display information about them, but I can only display the information which I use to link the object to the combo box (as in:     person1.name    allows me to display the name variable on the combobox, and allows me to display the name elsewhere).</p>
  
  <p>I want to be able to change other instance variables within each object. I know how to make a method to change each object, but I'd have to make six methods, one which specifically refers to each specific object.</p>
  
  <p>I want to change the boolean instance variable for the object which the user selects from the combobox. I thought I could do this with an array of objects, but I've been failing to set up that array. Is an array the right way to go? Or is there another way?</p>