private void lbChatDatesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbChatDatesMouseClicked
        if (evt.getClickCount() == 2) { // doubleclick
            if (lbChatDates.getSelectedIndex() == -1) { // there is no selection
                return;
            }
            
            String selectedName = (String) lbChatDates.getSelectedValue();
            String logPath = ConfigManager.getInstance().chatlogsDir + File.separatorChar + selectedName;
            
            try {
                txtChatLog.setText(new String(Files.readAllBytes(Paths.get(logPath)), "UTF-8"));
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
    }//GEN-LAST:event_lbChatDatesMouseClicked