public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
Component ret;
Icon icon;
if (value instanceof Tool) {
Tool t = (Tool) value;
ret = super.getListCellRendererComponent(list, t.getDisplayName(),
index, isSelected, cellHasFocus);
icon = new ToolIcon(t);
} else if (value == null) {
ret = super.getListCellRendererComponent(list, "---",
index, isSelected, cellHasFocus);