how to convert JTextField to string
and string to JTextField in java
If you mean how to get and set String from jTextField then you can use following methods:
String str = jTextField.getText() // get string from jtextfield
and
jTextField.setText(str) // set string to jtextfield
//or
new JTextField(str) // set string to jtextfield
You should check JavaDoc for JTextField
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…