HI,
Which is the correct way to get the value from a JComboBox as a String and why is it the correct way. Thanks.
String x = JComboBox.getSelectedItem().
The first method is right.
The second method kills kittens if you attempt to do anything with x after the fact other than Object methods.
x
Object