add(title, field);
return field;
}
protected ArrayEditor addArrayEditor(String title, Object[] values) {
ArrayEditor ed = new ArrayEditor(values);
ed.addActionListener(this);
// Make sure we resize/repaint when items are added or removed
ed.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() != ArrayEditor.ACTION_ITEM_CHANGED) {
revalidate();
repaint();
}