機能しない SQL クエリがあります。
String name = comboBoxgetSelectedItem().toString(); //Getting name from ComboBox
String age = "select age from actress where name = '" +namn+ "'"; //Get age from previous name
int TheAge = Integer.parseInt(age); //Want the age to be stored as int
これにより、次のエラーが発生します。
スレッド「AWT-EventQueue-0」での例外 java.lang.NumberFormatException: 入力文字列の場合: 「name = 'omg' の女優から年齢を選択してください」
「omg」は、Combox が最初のコード行で選択する名前です。