panel.setLayout(new GridLayout(count, 2));
ControlCreator controlCreator = new ControlCreator(this.gui);
for (int i = 0; i < count; i++) {
PropertyDescriptor property = (PropertyDescriptor)
properties.get(i);
TypeDescriptor propertyType = property.getPropertyType();
PropertyIdentifier identifier = property.getIdentifier();
Proxy propertyProxy = proxy.getPropertyProxy(identifier);
panel.add(new JLabel(identifier.getDescription()));
panel.add(
controlCreator.createControl(
propertyType, propertyProxy));
}
} else if (count == 1) {
PropertyDescriptor property =
(PropertyDescriptor) properties.get(0);
PropertyIdentifier identifier = property.getIdentifier();
Proxy propertyProxy = proxy.getPropertyProxy(identifier);
add(new ComponentCreator(gui).create(propertyProxy),
BorderLayout.CENTER);
} else {