HOW TO pass the string input in GUI using JTextfield to other 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);