How to make Button move form to next page
Hi all,
quite new to programming. I've built a form to capture
user preferences in checkboxes using a QWERTY
device. The problem is that I'm not sure of how to
create a button at the end, which when clicked,would take users to
another page with a "Thank You" message ...here are the codes for
the form:
import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.ChoiceGroup;
public class FormpShopper3 extends MIDlet
{private Display display;
private Form form;
private ChoiceGroup selection1;
private ChoiceGroup permission;
private ChoiceGroup time;
private ChoiceGroupPersonalInformation;
private ChoiceGroupEnvironmentalInformation;
private ChoiceGroup LocationAndGPSInformation;
private ChoiceGroup PurchaseInformation;
public FormpShopper3()
{
form = new Form("Welcome to pShopper");
selection1 = new ChoiceGroup("The privacy policy of the different websites you may be visiting will vary concerning the use of your personal information,Select preferred level of privacy ",Choice.MULTIPLE,new String[] {"Low", "Medium","High"},null);
form.append(selection1);
permission = new ChoiceGroup("Would you like pShopper to ask for your permission before receiving promotional adverts from websites?",Choice.MULTIPLE,new String[] {"Yes", "No","Maybe"},null);
form.append(permission);
time = new ChoiceGroup("Specify preferred time of the day to receive adverts",Choice.MULTIPLE,new String[] {"Morning", "Afternoon","Evening"},null);
form.append(time);
PersonalInformation = new ChoiceGroup("Reject promotional adverts from websites that:",Choice.MULTIPLE,new String[] {"Share my personal information with other websites without my full knowledge and consent", "Do not allow me to unsubscribe from their mailing list","Do not explicitly highlight their data-sharing practices","Do not allow me to find out what data they have about me"},null);
form.append(PersonalInformation);
EnvironmentalInformation = new ChoiceGroup("Reject promotional adverts from websites that",Choice.MULTIPLE,new String[] {"Do not explicitly highlight their environmental/carbon practices", "Do not market 'green' products","Do not practice Fair Trade"},null);
form.append(EnvironmentalInformation);
LocationAndGPSInformation = new ChoiceGroup("Reject promotional adverts from websites that track my location and then use my GPS data:",Choice.MULTIPLE,new String[] {"For illegitimate disclosure to individuals and other companies/third parties", "To obtain other information from my personal device","To analyze my pattern of movement","Without allowing me to opt-out","Without prior consent from me"},null);
form.append(LocationAndGPSInformation);
PurchaseInformation = new ChoiceGroup("Reject promotional adverts from websites that use information about my purchases",Choice.MULTIPLE,new String[] {"To share with individuals and other companies/third parties", "To analyze my habits and determine what adverts I see"},null);
form.append(PurchaseInformation);
}
public void startApp() {
Display display = Display.getDisplay(this);
display.setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
Pretty lengthy ( I know)

