Bonjour,
S'il vous plait je veux ajouter une liste dans un container, mais le code que j'ai réalisé ne permet pas de faire ça : voila le code :
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 public static Container getCheckboxSlected(String str[], int size) { Form f = new Form(); Container checkBox = new Container(new BoxLayout(BoxLayout.Y_AXIS)); javax.microedition.lcdui.List listCheck = new javax.microedition.lcdui.List("list", javax.microedition.lcdui.List.MULTIPLE); checkBox.addComponent(new Label("Operations ")); for (int i = 0; i <= size; i++) { listCheck.append(str[i], null); } checkBox.addComponent(listCheck); return checkBox; }
Partager