HOW TO pass the string input in GUI using JTextfield to oth开发者_StackOverflow社区er class in 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);
精彩评论