I was wondering, how do I add a button in a form?
Below is my code
form = new Form("ePolicia Transgressor Accuse");
tb = new TextField("Complaint Id: ", "", 30, TextField.ANY);
form.append(tb);
ticker = new Ticker("Creating Safer City for You");
form.addCommand(submitCommand);
form.addCommand(exitCommand);
form.setCommandListener(this);
form.setTicker(ticker);
display.setCurrent(form);
Now, I want to add a Button inside the form, which I can use.
Note: I'm not asking about the soft button like Exit, Submit. I want to add my own Button.
I have created following demo code for you using Netbeans and Visual Midlet, hope it will help you in your code,
This is the output