Value of TextField

11 views
Skip to first unread message

jev...@outsidethebowl.org

unread,
Jun 3, 2015, 8:54:43 PM6/3/15
to codenameone...@googlegroups.com
I am using IDE: NetBeans. I have created a text field using Codename one designer. with this layout:
Main
  Label[Label]
  streetField[TextField]
  Button[Button]

The button has an action event
    protected void onMain_ButtonAction(Component c, ActionEvent event) {

        String street = streetField.getText();
        //String street = "my street";
        boolean show = Dialog.show(street,"Hi There", "OK", null);
   
    }

I want to get the value of the streetField and put it in the Dialog. I get the error "cannot find symbol" on the streetField. I am not sure what I am missing here.

Shai Almog

unread,
Jun 4, 2015, 1:23:41 AM6/4/15
to codenameone...@googlegroups.com, jev...@outsidethebowl.org, jev...@outsidethebowl.org

jev...@outsidethebowl.org

unread,
Jun 4, 2015, 9:47:48 AM6/4/15
to codenameone...@googlegroups.com, jev...@outsidethebowl.org
Worked - Thanks.
Reply all
Reply to author
Forward
0 new messages