Hi gurus;
Well my project is stuck due the reason that sl45i emulator does not
show any command button when i use textfield with it.
Here is program which i am trying to solve my problem
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class
Test extends MIDlet implements CommandListener{
private Display display; // Reference to display object
private Form fmMain; // The main form
private Command cmInsert; // Command to insert items
private Command cmExit; // Command to exit
private DateField dfDate; // Display date
private TextField tfSize; // Product size
private TextField tfQuantity;// Product quantity
private int dateIndex; // Index of dfDate
public Test(){
display = Display.getDisplay(this);
// Create the date and populate with current date
// Define two textfields and two commands
tfSize = new TextField("Enter",null,15, TextField.NUMERIC);
cmInsert = new Command("Insert", Command.SCREEN, 2);
fmMain = new Form("Form Data...");
fmMain.append(tfSize);
fmMain.addCommand(cmInsert);
fmMain.setCommandListener(this);
}
public void startApp(){
display.setCurrent(fmMain);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable s){
}
}
Please i need help.Will be very yhankful.
Jawwad Ahmed