In my graphics application, there is a text field (txtField) and a "Search" button. When the application starts, the application opens and the user can enter information into the text box, and the Search button displays this information in the console. The problem is that the txtField.getText () method does not receive text that is written by hand in this field. When checking the program always thinks that the field is empty.

  • or the user enters not the txtField field, or txtField.getText() is called not in the context of the form that is shown to the user - Igor
  • Show the code please. - Vanguard

0