Reputation:
I have Jtextfield in one form and I want to get the value that I typed and put it in Jlabel in the other form? How can I do that?
Upvotes: 0
Views: 1365
Reputation: 3658
To get the text:
String text = textField.getText();
And then set it on your label with
label.setText(text);
Upvotes: 1