My text fields when I put input in them is returning NULL ?!
Here is a sample code:
private void jEdFeild1(java.awt.event.ActionEvent evt) {
myAns=jEdFeild.getSelectedText();

}

The variable myAns will return the string when in the method but not where I want it which is in another
method called:

private void writeit(java.awt.event.ActionEvent evt) {
....
System.out.printf("ans= %s",myans);

}