TabItem [] result = new TabItem [count]; System.arraycopy (items, 0, result, 0, count);
int n= 0; for (int i=0; i < count; i++) if (items[i] != null) n++; if (n < count) System.out.println("TabFolder.getItems: found null slots"); TabItem [] result = new TabItem [n]; for (int i=0; i < n; i++) if (items[i] != null) result[i]= items[i];
public TabItem [] getItems () {	checkWidget ();	int count = OS.GetControl32BitMaximum(handle);	TabItem [] result = new TabItem [count];	System.arraycopy (items, 0, result, 0, count);	return result;}