Reputation: 101
HOW TO pass the string input in GUI using JTextfield to other class in java.
Upvotes: 0
Views: 107
Reputation: 109027
Considering the amount of details provided in the question, here is an approximate answer
String text = jTextField.getText();
OtherClass otherClass = new OtherClass(text);
Upvotes: 1