📅  最后修改于: 2022-03-11 14:52:32.156000             🧑  作者: Mango
JTextField yourInpuFieldt = new JTextField(16);
yourInputField.setText("put your text here");
String x = yourInputField.getText();