The problem is, that DropDownBuilder does not expose the displayItems property with a dedicated method (missing feature really). You can work around it using the general method to set an attribute though:
[java]control(new DropDownBuilder(“dropDown”) {{
width("*");
set(“displayItems”, “10”); // have to use the general set(key, value) method since there is no dedicated “displayItems” method
}});[/java]