Hi, I'm using
int TxtAge = Integer.parseInt(tfAge.getText().trim());to get value from my textfield and search it in database.
Then, I'm using
Integer age = Integer.parseInt(stringTokenizer.nextElement().toString()); to go to next attributes in my database.
I have no problem using those codes for textfield but when I'm using the JComboBox the result won't display. How to use the StringTokenizer.nextElement for JComboBox? Is is the same with TextField?
String sex=(String) stringTokenizer.nextElement(); ---> I tried this code but still failed :(