public void updateDlInfo() {
        if (!downloadsTable.getSelectionModel().isSelectionEmpty()) {
            int id = downloadsTable.convertRowIndexToModel(downloadsTable.getSelectedRow());
            Integer gid = (Integer) downloadsTable.getModel().getValueAt(id, 0);
            Download dl = DownloadManager.getInstance().getDownloadsMap().get(gid);

            totalLengthLabel.setText("totalLength: " + getHumanSize(dl.getTotalLength()));
            gidLabel.setText("GID: " + dl.getGid());
            completedLengthLabel.setText("completedLength: " + getHumanSize(dl.getCompletedLength()));
            uploadLengthLabel.setText("uploadLength: " + getHumanSize(dl.getUploadLength()));
            downloadSpeedLabel.setText("downloadSpeed: " + getHumanSpeed(dl.getDownloadSpeed()));
            uploadSpeedLabel.setText("uploadSpeed: " + getHumanSpeed(dl.getUploadSpeed()));
            connectionsLabel.setText("connections: " + dl.getConnections());
            dirLabel.setText("dir: " + dl.getDir());
            nameLabel.setText("nameLabel: " + dl.getName());
            creationDateLabel.setText("creationDate: ");
            numSeedersLabel.setText("numSeedersLabel: ");

        } else {
            totalLengthLabel.setText("totalLength: ");
            gidLabel.setText("GID: ");
            completedLengthLabel.setText("completedLength: ");
            uploadLengthLabel.setText("uploadLengthLabel: ");
            downloadSpeedLabel.setText("downloadSpeedLabel: ");
            uploadSpeedLabel.setText("uploadSpeed: ");
            connectionsLabel.setText("connections: ");
            dirLabel.setText("dir: ");
            nameLabel.setText("nameLabel: ");
            creationDateLabel.setText("creationDate: ");
            numSeedersLabel.setText("numSeedersLabel: ");
        }
    }