Hecl Builder

Easy Mobile Applications

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

MIDP Version: 2.0
Description: lcdui.textbox example
Last updated: Mon Oct 27 15:12:48 +0000 2008 by davidw

set evalcmd [lcdui.command -label Evaluate -longlabel Evaluate]
set textbox [lcdui.textbox -text {[lcdui.alert -text "hi!"] setcurrent} \
	-commandaction runCode]
$textbox setcurrent
$textbox addcommand $evalcmd

proc runCode {cmd txtbox} {
    eval [$txtbox 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/