Research Log of Web Science Students

Computer Science is not simply programming

Posts Tagged ‘Generics

Forgive My Ignorance

leave a comment »

… but I just knew how to “array-ize” lists and such things.

List<List<TextBox>> descriptions = new ArrayList<List<TextBox>>();

… which is, in array form,

TextBox[][] descriptions = new TextBox[][];

Now I’m thinking if I have to initialize every widget add, or get them immediately (but I’m betting on the former).

List<VerticalPanel> vpanel = new ArrayList<VerticalPanel>();
// initialize component to add to vpanel
vpanel.add(new VerticalPanel());
// access it


Written by Paolo Sy

November 29, 2009 at 1:45 am

Posted in Hardwire

Tagged with , , ,