private String upPath = "/green_dot.png";
private String downPath = "/red_dot.png";
private boolean currentStatus = true;
@Override
public Component getListCellRendererComponent(JList list, Object server, int index, boolean isSelected, boolean cellHasFocus) {
Server thisServer = null;
thisServer = (Server) server;
GridLayout gridLayout = new GridLayout(0, 2);
setSize(10, 200);
setLayout(gridLayout);
removeAll();
add(new JLabel(thisServer.getURL()));
if (thisServer.isCurrentStatus()) {
add(new JLabel(createImageIcon(upPath, "up")));
} else {
add(new JLabel(createImageIcon(downPath, "down")));
}