开发者

question regarding GUI in java

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜