View Single Post
  #2 (permalink)  
Old 07-02-2007, 01:03 AM
Albert Albert is offline
Senior Member
 
Join Date: Jun 2007
Posts: 114
Albert is on a distinguished road
A String Is a Object

What happens when you cast the result to a String?
Code:
... String selection = (String)jComboBox.getSelectedItem(); ...
Greetings.

Albert
Reply With Quote