JComboBox
I'm currently writing a program for my Java class, and I need to be able to retrieve a selected item from a JComboBox.
//accept new data
newFirst = firstField.getText();
newLast = lastField.getText();
newCity = cityField.getText();
newStateBox = StateCombo.getItemText();
How would you do that? With the other variables, you can just put getText(), but I don't know what you use for JComboBoxes. Any help?

