f.add(new TextField("test5"));
f.add(new TextField("test6"));
f.pack();
f.show();
DefaultComponentGridLayout h = new DefaultComponentGridLayout(f);
h.doLayout();
Iterator it = h.getCells().iterator();
while (it.hasNext())
{
System.out.println(it.next());
}