All pastes #289877 Raw Edit

Unnamed

public text v1 · immutable
#289877 ·published 2006-12-23 14:17 UTC
rendered paste body
for (int i=0; i < noOfTextFields; i++) {
       String value = (String)jComboBox[i].getSelectedItem();
       school = new School(textFields[i].getText(), value);

       try {
            objectOutputStream.writeObject(school.toString());
           }
       catch (IOException ioe) {
            JOptionPane.showMessageDialog(this, "There was an IOException", "Error", JOptionPane.ERROR_MESSAGE);                
       }
}