SyntaxFix
Write A Post
Hire A Developer
Questions
Method Object JComboBox.getSelectedItem() returns a value that is wrapped by Object type so you have to cast it accordingly.
Object JComboBox.getSelectedItem()
Object
Syntax:
YourType varName = (YourType)comboBox.getSelectedItem();` String value = comboBox.getSelectedItem().toString();