hi all
i face problem reading the JComboBox's selected item to a string variable.
i'm trying like this;
its says error.
so whats the way to read the selected item.
thanks chel-1
i face problem reading the JComboBox's selected item to a string variable.
i'm trying like this;
Code:
String str=cmbname.getSelectedItem();
so whats the way to read the selected item.
thanks chel-1
Comment