@Override
    public Component getListCellRendererComponent(JList<? extends Record> list,
                                                  Record value, int index, boolean isSelected, boolean cellHasFocus) {

        JPanel recordViewPanel = new JPanel();
        recordViewPanel.setLayout(new BorderLayout());
        recordViewPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
        String sing = value.isAddOperation() ? "+" : "-";

        if (value != null) {
            JLabel transInfo = new JLabel(sing + value.getOperationAmount() + " RUB" + "   " + "Category: " + value.getOperationCat().getCategoryName());
            JLabel transDate = new JLabel("Date: " + new Date(value.getOperationDate()).toString());
            JLabel transDesc = new JLabel(value.getOperationDesc());
            JLabel transImage = (value.isAddOperation() ? plusImageLabel : minusImageLabel);
            recordViewPanel.add(transInfo, BorderLayout.NORTH);
            recordViewPanel.add(transDate, BorderLayout.CENTER);
            recordViewPanel.add(transDesc, BorderLayout.SOUTH);
            recordViewPanel.add(transImage, BorderLayout.EAST);
        }
        return recordViewPanel;
    }