KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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().toString(); or String x = (String)JComboBox.getSelectedItem();
Tags (comma-separated)
Save Edits
Cancel