|
-
March 5th, 2017, 03:28 PM
#1
Ed fields return NULL problem !
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);

}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|