public void itemStateChanged(final ItemEvent e) {
selectedAttributeChanged(e.getItem(), attributeValues);
}
});
attributeValues = new JComboBox();
attributeValues.setRenderer(new TypedListCellRenderer());
attributeValues.setMaximumSize(comboBoxMaximumSize);
attributeValues.setPreferredSize(comboBoxMaximumSize);
replacingAttributeNames = new JComboBox();
replacingAttributeNames.setMaximumSize(comboBoxMaximumSize);
replacingAttributeNames.setPreferredSize(comboBoxMaximumSize);
replacingAttributeNames.addItemListener(new ItemListener() {
public void itemStateChanged(final ItemEvent e) {
selectedAttributeChanged(e.getItem(), replacingAttributeValues);
}
});
replacingAttributeValues = new JComboBox();
replacingAttributeValues.setRenderer(new TypedListCellRenderer());
replacingAttributeValues.setMaximumSize(comboBoxMaximumSize);
replacingAttributeValues.setPreferredSize(comboBoxMaximumSize);
final Box addDeleteBtnBox = Box.createVerticalBox();
addDeleteBtnBox.setBorder(btnBorder);
addDeleteBtnBox.add(Box.createVerticalGlue());