Hecl Builder

Easy Mobile Applications

TextfieldExample
Download: .jad .jar
2.0/5 Average rating:

MIDP Version: 2.0
Description: lcdui.textfield example
Last updated: Mon Oct 27 15:32:06 +0000 2008 by davidw

set evalcmd [lcdui.command -label Evaluate -longlabel Evaluate]
set textfield [lcdui.textfield -text {[lcdui.alert -text "hi!"] setcurrent}]
set form [lcdui.form -title "Text Field Example" -commandaction \
    [list runCode $textfield]]
$form append $textfield
$form setcurrent
$form addcommand $evalcmd

proc runCode {txtfld cmd frm} {
    eval [$txtfld cget -text]
}


Note: If you have trouble with the applets on this site, you might try upgrading your Jave Runtime Environment, in order to get the "Next-Generation Java Plug-In", available for download here: http://download.java.net/jdk6/