question regarding GUI in java

前端 未结 2 1314
[愿得一人]
[愿得一人] 2021-01-26 13:02

HOW TO pass the string input in GUI using JTextfield to other class in java.

相关标签:
2条回答
  • 2021-01-26 13:18
    otherclass.setText (jTextField.getText ());
    
    0 讨论(0)
  • 2021-01-26 13:19

    Considering the amount of details provided in the question, here is an approximate answer

    String text = jTextField.getText();
    OtherClass otherClass = new OtherClass(text);
    
    0 讨论(0)
提交回复
热议问题