如何使用JTextfield将GUI中输入的字符串传递给Java中的其他类。
otherclass.setText (jTextField.getText ());
Considering the amount of details provided in the question, here is an approximate answer
String text = jTextField.getText();
OtherClass otherClass = new OtherClass(text);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.