/* * HttpPostDemo.java * * Created on 13 ??????? 2546, 16:38 ?. */ import java.io.*; import javax.microedition.io.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author sup98 * @version */ public class HttpPostDemo extends MIDlet implements CommandListener{ private Display display; private Command exitCommand; private Alert alert = new Alert("Your choice", "", null, null); String url = "http://localhost/HttpPostDemo.php"; private List l1; private String choice[] ={"Java", "Pascal" ,"C++" ,"Fortran"}; public HttpPostDemo() { display = Display.getDisplay(this); exitCommand = new Command("Exit", Command.SCREEN, 1); } /** * Start up the Hello MIDlet by creating the TextBox and associating * the exit command and listener. */ public void startApp() { l1 = new List("Language", Choice.IMPLICIT); for(int i=0; i