get text from textfield swing code example
Example: get text from a jtextfield
JTextField yourInpuFieldt = new JTextField(16);
yourInputField.setText("put your text here");
String x = yourInputField.getText();
JTextField yourInpuFieldt = new JTextField(16);
yourInputField.setText("put your text here");
String x = yourInputField.getText();