R
Ramon F Herrera
My applet has several JComboBoxes which are filled at
start() time with items provided by the web server.
I need some advise to help me determine what is the best linear
class (List? Array? Vector?, some subclass of those?) to fill
the arrays. The object requirements are: the object should
grow dynamically, it should be sorteable and should be assignable
to a ComboBoxModel. The array has the handy feature of easy sorting:
Arrays.sort(myArray);
but the fixed size is a problem. On the other hand, the vector
is dynamic and I can add items at a given place, but I cannot
figure out how to sort a vector. Likewise, I have been unable
to assign a List to a ComboBoxModel.
Thanks you very much for your expert assistance.
Regards,
-Ramon F. Herrera
start() time with items provided by the web server.
I need some advise to help me determine what is the best linear
class (List? Array? Vector?, some subclass of those?) to fill
the arrays. The object requirements are: the object should
grow dynamically, it should be sorteable and should be assignable
to a ComboBoxModel. The array has the handy feature of easy sorting:
Arrays.sort(myArray);
but the fixed size is a problem. On the other hand, the vector
is dynamic and I can add items at a given place, but I cannot
figure out how to sort a vector. Likewise, I have been unable
to assign a List to a ComboBoxModel.
Thanks you very much for your expert assistance.
Regards,
-Ramon F. Herrera