based on the contents of a vector(IDs), i m trying to create the corresponding no. of buttons but I m having problems doing that. I was wondering if anyone could help?
Below is the code that i m using to try to get that done...
ButtonField[] btn = new ButtonField[list.IDs.size()];
for(int i=0; i<list.IDs.size(); i++){
btn[i].setLabel((String)list.IDs.elementAt(i));
add(btn[i]);
}
I m currently getting an null pointer exception on the setLabel line.