Object[] array = this.dataAttributes.keySet().toArray();
Arrays.sort(array);
JComboBox cbName = new JComboBox(array);
this.leftParts.add(cbName);
String obj = (String)cbName.getSelectedItem();//get selecting attribute
ValueComboBox cbValue = null;
if(obj == null) {
VisualGraph.log.printDebug("[" + this.getClass().getName() + ".plus] selected attribute = null");
cbValue = new ValueComboBox();
} else {
Set<String>value = this.dataAttributes.get(obj);
if(value != null) {
array = value.toArray();
Arrays.sort(array);
cbValue = new ValueComboBox(array);
} else {
cbValue = new ValueComboBox();
}
}
this.rightParts.add(cbValue);
//create delete button
JButton delete = new JButton("Delete");