08-22-2008, 12:35 PM
|
#1 (permalink)
|
| Thumbs Must Hurt
Join Date: Oct 2007 Location: montreal Model: 8100 PIN: N/A Carrier: rogers
Posts: 70
Post Thanks: 0 Thanked 0 Times in 0 Posts
| How can I change a labelfield text? Please Login to Remove! I have a screen with 2 horizontalfieldmanagers and 2 verticalfieldmanagers representing a 4-cell grid. Each cell contains a labelfield with a default value. The code is as follows:
vfmC1.add(new LabelField("r1c1"));
Now I want to set up a listener so that when I enter a value in another part of the screen this LabelField text (r1c1) changes to a new value. I do not want to display another screen or use a dialogbox and would rather just change the value.
How would I go about doing this? I tried this but it doesn't work:
vfmC1.setText("test");
Thanks... |
| Offline
| |