private void bLoadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLoadActionPerformed
        JFileChooser jfc = new JFileChooser();
        if (lastLoadDir != null) {
            jfc.setCurrentDirectory(lastLoadDir);
        }
        jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
        if (jfc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
            try {
                App.ge.extractShapes(jfc.getSelectedFile());
                TextEnterDialog.showRecognizeDialog(this);
                mapShapes(true);
            } catch (XMLStreamException ex) {
                System.err.println(ex.getMessage());
                JOptionPane.showMessageDialog(this, "Unrecognized or malformed XML file!", "Loading failed", JOptionPane.ERROR_MESSAGE);
            } catch (IOException ex) {
                System.err.println(ex.getMessage());
                JOptionPane.showMessageDialog(this, ex.getMessage(), "File problem", JOptionPane.ERROR_MESSAGE);
            }
            lastLoadDir = jfc.getSelectedFile().getParentFile();
        }
    }//GEN-LAST:event_bLoadActionPerformed