Am facing some problem with populating the Multilist in Codename One. But values are not loaded in the form. It shows blank list with checkbox. What am I doing wrong ?
@Override
protected boolean initListModelMultiList(List cmp) {
Vector vec = new Vector();
Hashtable h = new Hashtable();
h.put("User1", "List1");
h.put("User2", "List2");
h.put("User3", "List3");
vec.addElement(h);
cmp.setModel(new DefaultListModel(vec));
return true;
}
Below warnings are displayed in the eclipse window. Vector vec = new Vector() is line number 279.
Description Resource Path Location Type Vector is a raw type. References to generic type Vector should be parameterized StateMachine.java /Testing/src/userclasses line 279 Java Problem List is a raw type. References to generic type List should be parameterized StateMachine.java /Testing/src/userclasses line 278 Java Problem Hashtable is a raw type. References to generic type Hashtable should be parameterized StateMachine.java /Testing/src/userclasses line 280 Java Problem Hashtable is a raw type. References to generic type Hashtable should be parameterized StateMachine.java /Testing/src/userclasses line 280 Java Problem Vector is a raw type. References to generic type Vector should be parameterized StateMachine.java /Testing/src/userclasses line 279 Java Problem