|
|
@ -87,7 +87,7 @@ public class BaseConverterApp extends Application {
|
|
|
|
resultField.setText(result);
|
|
|
|
resultField.setText(result);
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
// 如果输入无效,显示错误信息
|
|
|
|
// 如果输入无效,显示错误信息
|
|
|
|
resultField.setText("Invalid Input");
|
|
|
|
resultField.setText("输入格式错误");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|