@Override
	public Component getListCellRendererComponent(JList<? extends SocketInformation> list, SocketInformation value, int index, boolean isSelected, boolean cellHasFocus) {
		String status = (value.isClosed()) ? "fechada" : "aberta";
		String text = value.getAddress() + "\n"
				+ value.getPort() + "\n"
				+ "Conexão " + status;
		setText(text);
		
		int visible = list.getVisibleRowCount() - 1;
		if (index < visible) {
			setBorder(BORDER_BOTTOM);
		} else if (index > visible) {
			setBorder(BORDER_TOP);
		} else {
			setBorder(BORDER_EMPTY);
		}
		if (isSelected) {
			if (cellHasFocus) {
				setForeground(FOREGROUND_SELECTED);
				setBackground(BACKGROUND_SELECTED);
			} else {
				setForeground(FOREGROUND_HALF);
				setBackground(BACKGROUND_HALF);
			}
		} else {
			setForeground(FOREGROUND_NORMAL);
			setBackground(BACKGROUND_NORMAL);
		}
		
		return this;
	}