private void refreshUpPanel (final User user) {

        usersFilesList = new JList(user.getHistoryFileListModel());   
        upPanel.removeAll();
        upPanel.add(usersFilesList);
        upPanel.revalidate();
        upPanel.repaint();
        usersFilesList.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2) {
                  
                    Client c = new Client(user.getIP(), user.getPORT(), usersFilesList.getSelectedValue(), tableModel, currentUser.getName());

                    historyFileListUtils.addToFileList(usersFilesList.getSelectedValue());
                    tableModel.fireTableRowsInserted(table.getRowCount() + 1, table.getColumnCount() + 1);

                    c.execute();
                    if (c.isDone())
                        c.cancel(true);
                }
            }
        });
    }