code: private void buttonLoadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonLoadActionPerformed
      final File home = new File(System.getProperty("user.home")); //NOI18N
      final File toOpen = new FileChooserBuilder("user-home-dir"). //NOI18N
          setTitle(java.util.ResourceBundle.getBundle("com/igormaznitsa/nbmindmap/i18n/Bundle").getString("PlainTextEditor.buttonLoadActionPerformed.title")).
          addFileFilter(TEXT_FILE_FILTER).setFileFilter(TEXT_FILE_FILTER).
          setFilesOnly(true).
          setDefaultWorkingDirectory(home).
          showOpenDialog();
      if (toOpen != null) {
        try {
          final String text = FileUtils.readFileToString(toOpen, "UTF-8"); //NOI18N
          setText(text);
        }
        catch (Exception ex) {
          LOGGER.error("Error during text file loading", ex); //NOI18N
          NbUtils.msgError(null, java.util.ResourceBundle.getBundle("com/igormaznitsa/nbmindmap/i18n/Bundle").getString("PlainTextEditor.buttonLoadActionPerformed.msgError"));
        }
      }
    }
docs: </editor-fold>//GEN-END:initComponents