codename1 didnt add isempty method

12 views
Skip to first unread message

chisom dike Onwuegbuzie

unread,
Oct 17, 2013, 4:37:51 PM10/17/13
to codenameone...@googlegroups.com
please i tried a normal isempty method which works on swing in codename1 project but is not there and i have tried to get the value of the textfield and try null or =="" but still doent work do how do i check if a textfield is empty in codename1

Mario Barón

unread,
Oct 17, 2013, 4:39:21 PM10/17/13
to codenameone...@googlegroups.com
try textfield.getText().equals("")

chisom dike Onwuegbuzie

unread,
Oct 17, 2013, 4:45:00 PM10/17/13
to codenameone...@googlegroups.com
ok i didnt even think of this thanks. let me try it out

Reply all
Reply to author
Forward
0 new messages