ajouter une list dans un container
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 :
Code:
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;
} |
Merci d'avance