ZooInspectorNodeViewer viewer = (ZooInspectorNodeViewer) viewersList
.getSelectedValue();
int index = viewersList.getSelectedIndex();
if (listModel.contains(viewer)) {
listModel.removeElementAt(index);
listModel.insertElementAt(viewer, index + 1);
viewersList.setSelectedValue(viewer, true);
}
}
});
buttons.get(Button.remove).addActionListener(new ActionListener() {