|
How to retrieve the last value that the user entered as a String |
|
|
The following J2ME code extract shows how a listener might use getString( ) to
retrieve the last value that the user entered as a String:
public void itemStateChanged(Item item) {
if (item instanceof TextField) {
System.out.println("Text field content: <" +
((TextField)item).getString( ) + ">");
}
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.