@@ -0,0 +1,2660 @@
+package sms_j2me;%0A%0A%0Aimport javax.microedition.lcdui.*;%0A%0A%0A%0A%0Apublic class Display1_Impostazioni extends Form implements CommandListener, ItemStateListener %7B%0A   private String mittente = %22mittente%22;%0A%0A   private MainMIDlet midlet;%0A   private Display2_Sms displaySms;%0A   private Sms sms;%0A   private String%5B%5D%5B%5D identita = %7B%0A      %7B%22uno%22, %22pass1%22%7D,%0A      %7B%22due%22, %22pass2%22%7D%0A   %7D;%0A%0A   ChoiceGroup identitaChoice = new ChoiceGroup(%22%22, ChoiceGroup.EXCLUSIVE);%0A   ChoiceGroup servletChoice = new ChoiceGroup(%22%22, ChoiceGroup.EXCLUSIVE);%0A   int i = 0;%0A   public Display1_Impostazioni(MainMIDlet m) %7B%0A      super(%22IMPOSTAZIONI%22);%0A      try %7B%0A         midlet = m;%0A         jbInit();%0A      %7D%0A      catch (Exception e) %7B%0A         e.printStackTrace();%0A      %7D%0A   %7D%0A%0A%0A%0A%0A%0A   private void jbInit() throws Exception %7B%0A      // Set up this Displayable to listen to command events%0A      setCommandListener(this);%0A      //setItemStateListener(this);%0A%0A      // add the Exit command%0A      addCommand(new Command(%22Esci%22, Command.EXIT, 1));%0A      addCommand(new Command(%22Avanti%22, Command.OK, 1));%0A      identitaChoice.setLabel(%22Identit:%22);%0A      identitaChoice.setLayout(Item.LAYOUT_EXPAND %7C Item.LAYOUT_VEXPAND);%0A      identitaChoice.append(identita%5B0%5D%5B0%5D, null);%0A      identitaChoice.append(identita%5B1%5D%5B0%5D, null);%0A      this.append(identitaChoice);%0A      this.append(servletChoice);%0A      servletChoice.setLabel(%22Servlet:%22);%0A      servletChoice.setLayout(Item.LAYOUT_EXPAND %7C Item.LAYOUT_VEXPAND %7C Item.LAYOUT_NEWLINE_BEFORE);%0A      servletChoice.append(%22nimiq.nimServlet%22, null);%0A      servletChoice.append(%22nimiq77.nimServlet%22, null);%0A   %7D%0A%0A%0A%0A%0A%0A   public void commandAction(Command command, Displayable displayable) %7B%0A      /** @todo Add command handling code */%0A      if (command.getCommandType() == Command.EXIT) %7B%0A         // stop the MIDlet%0A         MainMIDlet.quitApp();%0A      %7D%0A      if (command.getCommandType() == Command.OK) %7B%0A         sms = new Sms();%0A         sms.setId(identita%5BidentitaChoice.getSelectedIndex()%5D%5B0%5D);%0A         sms.setPw(identita%5BidentitaChoice.getSelectedIndex()%5D%5B1%5D);%0A         sms.setMitt(mittente);%0A         sms.setServlet(servletChoice.getString(servletChoice.getSelectedIndex()));%0A%0A         if (displaySms == null) %7B%0A            displaySms = new Display2_Sms(this, sms);%0A         %7D%0A         Display.getDisplay(midlet).setCurrent(displaySms);%0A      %7D%0A   %7D%0A%0A%0A   public void itemStateChanged(Item item) %7B%0A      //nel caso in cui voglio aggiungere una funzione che si attiva qdo modifico la choice selezionata%0A   %7D%0A%0A   public MainMIDlet getMainMidlet() %7B%0A      return midlet;%0A   %7D%0A%0A%0A%0A   public String%5B%5D getIdentita(int n) %7B%0A      return identita%5Bn%5D;%0A   %7D%0A%0A%7D%0A

Add Display1_Impostazioni