Exemple #1
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel4 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    ConnectKnowledgeBaseBtn = new javax.swing.JButton();
    SparqlBtn = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    SparqlTxtArea = new javax.swing.JTextArea();
    jLabel1 = new javax.swing.JLabel();
    jScrollPane3 = new javax.swing.JScrollPane();
    JessRuleArea = new javax.swing.JTextArea();
    JessTestBtn = new javax.swing.JButton();
    EvaluateJessRule = new javax.swing.JButton();
    JessStringTF = new javax.swing.JTextField();
    jTextField1 = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jButton2 = new javax.swing.JButton();
    jTextField2 = new javax.swing.JTextField();
    jTextField4 = new javax.swing.JTextField();
    jPasswordField1 = new javax.swing.JPasswordField();
    jCheckBox1 = new javax.swing.JCheckBox();
    jLabel5 = new javax.swing.JLabel();
    DurationTF = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    ProjectNameTF = new javax.swing.JTextField();
    BriefInfoBtn = new javax.swing.JButton();
    jScrollPane2 = new javax.swing.JScrollPane();
    LoggingAreaTA = new javax.swing.JTextArea();
    CountInstancesBtn = new javax.swing.JButton();
    ClassNameTF = new javax.swing.JTextField();
    QueriesCmb = new javax.swing.JComboBox();
    LoadQueriesBtn = new javax.swing.JButton();
    RunThisQueryBtn = new javax.swing.JButton();
    RunAllQueriesBtn = new javax.swing.JButton();
    ExitBtn = new javax.swing.JButton();
    SPARQL2JessBtn = new javax.swing.JButton();
    ClearQueriesBtn = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap =
        org.jdesktop.application.Application.getInstance(
                placecommframework.PlaceCommFrameworkApp.class)
            .getContext()
            .getResourceMap(PBVCPlugin.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setIconImage(null);
    setName("Form"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    ConnectKnowledgeBaseBtn.setText(
        resourceMap.getString("ConnectKnowledgeBaseBtn.text")); // NOI18N
    ConnectKnowledgeBaseBtn.setName("ConnectKnowledgeBaseBtn"); // NOI18N
    ConnectKnowledgeBaseBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            ConnectKnowledgeBaseBtnMouseClicked(evt);
          }
        });

    SparqlBtn.setText(resourceMap.getString("SparqlBtn.text")); // NOI18N
    SparqlBtn.setName("SparqlBtn"); // NOI18N
    SparqlBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            SparqlBtnMouseClicked(evt);
          }
        });

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    SparqlTxtArea.setColumns(20);
    SparqlTxtArea.setRows(5);
    SparqlTxtArea.setText(resourceMap.getString("SparqlTxtArea.text")); // NOI18N
    SparqlTxtArea.setName("SparqlTxtArea"); // NOI18N
    jScrollPane1.setViewportView(SparqlTxtArea);

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jScrollPane3.setName("jScrollPane3"); // NOI18N

    JessRuleArea.setColumns(20);
    JessRuleArea.setRows(5);
    JessRuleArea.setText(resourceMap.getString("JessRuleArea.text")); // NOI18N
    JessRuleArea.setName("JessRuleArea"); // NOI18N
    jScrollPane3.setViewportView(JessRuleArea);

    JessTestBtn.setText(resourceMap.getString("JessTestBtn.text")); // NOI18N
    JessTestBtn.setName("JessTestBtn"); // NOI18N
    JessTestBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            JessTestBtnMouseClicked(evt);
          }
        });

    EvaluateJessRule.setText(resourceMap.getString("EvaluateJessRule.text")); // NOI18N
    EvaluateJessRule.setName("EvaluateJessRule"); // NOI18N
    EvaluateJessRule.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            EvaluateJessRuleMouseClicked(evt);
          }
        });

    JessStringTF.setName("JessStringTF"); // NOI18N

    jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
    jTextField1.setName("jTextField1"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
    jButton2.setName("jButton2"); // NOI18N

    jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
    jTextField2.setName("jTextField2"); // NOI18N

    jTextField4.setText(resourceMap.getString("jTextField4.text")); // NOI18N
    jTextField4.setName("jTextField4"); // NOI18N

    jPasswordField1.setText(resourceMap.getString("jPasswordField1.text")); // NOI18N
    jPasswordField1.setName("jPasswordField1"); // NOI18N

    jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
    jCheckBox1.setName("jCheckBox1"); // NOI18N

    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    DurationTF.setText(resourceMap.getString("DurationTF.text")); // NOI18N
    DurationTF.setName("DurationTF"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    ProjectNameTF.setText(resourceMap.getString("ProjectNameTF.text")); // NOI18N
    ProjectNameTF.setName("ProjectNameTF"); // NOI18N

    BriefInfoBtn.setText(resourceMap.getString("BriefInfoBtn.text")); // NOI18N
    BriefInfoBtn.setName("BriefInfoBtn"); // NOI18N
    BriefInfoBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            BriefInfoBtnMouseClicked(evt);
          }
        });

    jScrollPane2.setName("jScrollPane2"); // NOI18N

    LoggingAreaTA.setColumns(20);
    LoggingAreaTA.setRows(5);
    LoggingAreaTA.setName("LoggingAreaTA"); // NOI18N
    jScrollPane2.setViewportView(LoggingAreaTA);

    CountInstancesBtn.setText(resourceMap.getString("CountInstancesBtn.text")); // NOI18N
    CountInstancesBtn.setName("CountInstancesBtn"); // NOI18N
    CountInstancesBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            CountInstancesBtnMouseClicked(evt);
          }
        });

    ClassNameTF.setText(resourceMap.getString("ClassNameTF.text")); // NOI18N
    ClassNameTF.setName("ClassNameTF"); // NOI18N

    QueriesCmb.setName("QueriesCmb"); // NOI18N
    QueriesCmb.addItemListener(
        new java.awt.event.ItemListener() {
          public void itemStateChanged(java.awt.event.ItemEvent evt) {
            QueriesCmbItemStateChanged(evt);
          }
        });

    LoadQueriesBtn.setText(resourceMap.getString("LoadQueriesBtn.text")); // NOI18N
    LoadQueriesBtn.setName("LoadQueriesBtn"); // NOI18N
    LoadQueriesBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            LoadQueriesBtnMouseClicked(evt);
          }
        });

    RunThisQueryBtn.setText(resourceMap.getString("RunThisQueryBtn.text")); // NOI18N
    RunThisQueryBtn.setName("RunThisQueryBtn"); // NOI18N
    RunThisQueryBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            RunThisQueryBtnMouseClicked(evt);
          }
        });

    RunAllQueriesBtn.setText(resourceMap.getString("RunAllQueriesBtn.text")); // NOI18N
    RunAllQueriesBtn.setName("RunAllQueriesBtn"); // NOI18N
    RunAllQueriesBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            RunAllQueriesBtnMouseClicked(evt);
          }
        });

    ExitBtn.setText(resourceMap.getString("ExitBtn.text")); // NOI18N
    ExitBtn.setName("ExitBtn"); // NOI18N
    ExitBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            ExitBtnMouseClicked(evt);
          }
        });

    SPARQL2JessBtn.setText(resourceMap.getString("SPARQL2JessBtn.text")); // NOI18N
    SPARQL2JessBtn.setName("SPARQL2JessBtn"); // NOI18N

    ClearQueriesBtn.setText(resourceMap.getString("ClearQueriesBtn.text")); // NOI18N
    ClearQueriesBtn.setName("ClearQueriesBtn"); // NOI18N
    ClearQueriesBtn.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            ClearQueriesBtnMouseClicked(evt);
          }
        });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(
                                jScrollPane2,
                                javax.swing.GroupLayout.Alignment.LEADING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                478,
                                Short.MAX_VALUE)
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addComponent(jButton2)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                        334,
                                        Short.MAX_VALUE)
                                    .addComponent(ExitBtn))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addComponent(jLabel3)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        jTextField1,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        427,
                                        Short.MAX_VALUE))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addComponent(JessTestBtn)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(EvaluateJessRule)
                                    .addGap(26, 26, 26)
                                    .addComponent(
                                        JessStringTF,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        77,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel5)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        DurationTF,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        171,
                                        Short.MAX_VALUE))
                            .addComponent(
                                jScrollPane3,
                                javax.swing.GroupLayout.Alignment.LEADING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                478,
                                Short.MAX_VALUE)
                            .addComponent(
                                jScrollPane1,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                478,
                                Short.MAX_VALUE)
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4)
                                            .addComponent(jLabel1)
                                            .addComponent(jLabel2)
                                            .addComponent(jLabel6))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                ProjectNameTF,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                404,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jTextField4,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                404,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jPasswordField1,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                404,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jTextField2,
                                                javax.swing.GroupLayout.Alignment.TRAILING,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                404,
                                                Short.MAX_VALUE)))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addComponent(ConnectKnowledgeBaseBtn)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(BriefInfoBtn)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(CountInstancesBtn)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        ClassNameTF,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        148,
                                        Short.MAX_VALUE))
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING,
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(SPARQL2JessBtn)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(SparqlBtn)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        ClearQueriesBtn,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        104,
                                                        Short.MAX_VALUE))
                                            .addGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING,
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(LoadQueriesBtn)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        QueriesCmb, 0, 185, Short.MAX_VALUE)))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(RunThisQueryBtn)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(RunAllQueriesBtn))
                                            .addComponent(
                                                jCheckBox1,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                169,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(
                                jTextField4,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(
                                jTextField2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(
                                jPasswordField1,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(
                                ProjectNameTF,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ConnectKnowledgeBaseBtn)
                            .addComponent(BriefInfoBtn)
                            .addComponent(CountInstancesBtn)
                            .addComponent(
                                ClassNameTF,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(
                        jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                QueriesCmb,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(LoadQueriesBtn)
                            .addComponent(RunThisQueryBtn)
                            .addComponent(RunAllQueriesBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(SparqlBtn)
                            .addComponent(jCheckBox1)
                            .addComponent(SPARQL2JessBtn)
                            .addComponent(ClearQueriesBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(
                        jScrollPane1,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        117,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(JessTestBtn)
                            .addComponent(EvaluateJessRule)
                            .addComponent(
                                JessStringTF,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(
                                DurationTF,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(4, 4, 4)
                    .addComponent(
                        jScrollPane3,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        146,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel3)
                            .addComponent(
                                jTextField1,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton2)
                            .addComponent(ExitBtn))));

    pack();
  } // </editor-fold>//GEN-END:initComponents
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    mainPanel = new javax.swing.JPanel();
    pnButton = new javax.swing.JPanel();
    btnVertex = new javax.swing.JButton();
    btnEdge = new javax.swing.JButton();
    btnStart = new javax.swing.JButton();
    btnEnd = new javax.swing.JButton();
    btnStep = new javax.swing.JButton();
    btnSolve = new javax.swing.JButton();
    btnClear = new javax.swing.JButton();
    /*
    pnGraph = new javax.swing.JPanel();
    */ this.pnGraph = new jGraphPanel();
    jTextStatus = new javax.swing.JTextField();
    jRandomCheck = new javax.swing.JCheckBox();
    /*
    pnHeap = new javax.swing.JPanel();
    */ this.pnHeap = new jHeapPanel();
    jTextHeap = new javax.swing.JLabel();
    pnSolution = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jSolution = new javax.swing.JTextArea();
    menuBar = new javax.swing.JMenuBar();
    javax.swing.JMenu fileMenu = new javax.swing.JMenu();
    openMenuItem = new javax.swing.JMenuItem();
    saveMenuItem = new javax.swing.JMenuItem();
    jSeparator = new javax.swing.JPopupMenu.Separator();
    javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenu helpMenu = new javax.swing.JMenu();
    javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
    jOpenFileChooser = new javax.swing.JFileChooser();
    jSaveFileChooser = new javax.swing.JFileChooser();

    mainPanel.setMinimumSize(new java.awt.Dimension(715, 600));
    mainPanel.setName("mainPanel"); // NOI18N
    mainPanel.setPreferredSize(new java.awt.Dimension(715, 600));

    pnButton.setMinimumSize(new java.awt.Dimension(90, 300));
    pnButton.setName("pnButton"); // NOI18N
    pnButton.setPreferredSize(new java.awt.Dimension(90, 300));

    org.jdesktop.application.ResourceMap resourceMap =
        org.jdesktop.application.Application.getInstance(dijkstra.DijkstraApp.class)
            .getContext()
            .getResourceMap(DijkstraView.class);
    btnVertex.setText(resourceMap.getString("btnVertex.text")); // NOI18N
    btnVertex.setToolTipText(resourceMap.getString("btnVertex.toolTipText")); // NOI18N
    btnVertex.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnVertex.setMinimumSize(new java.awt.Dimension(70, 30));
    btnVertex.setName("btnVertex"); // NOI18N
    btnVertex.setPreferredSize(new java.awt.Dimension(70, 30));
    btnVertex.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnVertexMouseClicked(evt);
          }
        });

    btnEdge.setText(resourceMap.getString("btnEdge.text")); // NOI18N
    btnEdge.setToolTipText(resourceMap.getString("btnEdge.toolTipText")); // NOI18N
    btnEdge.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnEdge.setMinimumSize(new java.awt.Dimension(70, 30));
    btnEdge.setName("btnEdge"); // NOI18N
    btnEdge.setPreferredSize(new java.awt.Dimension(70, 30));
    btnEdge.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnEdgeMouseClicked(evt);
          }
        });

    btnStart.setText(resourceMap.getString("btnStart.text")); // NOI18N
    btnStart.setToolTipText(resourceMap.getString("btnStart.toolTipText")); // NOI18N
    btnStart.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnStart.setMinimumSize(new java.awt.Dimension(70, 30));
    btnStart.setName("btnStart"); // NOI18N
    btnStart.setPreferredSize(new java.awt.Dimension(70, 30));
    btnStart.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnStartMouseClicked(evt);
          }
        });

    btnEnd.setText(resourceMap.getString("btnEnd.text")); // NOI18N
    btnEnd.setToolTipText(resourceMap.getString("btnEnd.toolTipText")); // NOI18N
    btnEnd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnEnd.setMinimumSize(new java.awt.Dimension(70, 30));
    btnEnd.setName("btnEnd"); // NOI18N
    btnEnd.setPreferredSize(new java.awt.Dimension(70, 30));
    btnEnd.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnEndMouseClicked(evt);
          }
        });

    btnStep.setText(resourceMap.getString("btnStep.text")); // NOI18N
    btnStep.setToolTipText(resourceMap.getString("btnStep.toolTipText")); // NOI18N
    btnStep.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnStep.setMinimumSize(new java.awt.Dimension(70, 30));
    btnStep.setName("btnStep"); // NOI18N
    btnStep.setPreferredSize(new java.awt.Dimension(70, 30));
    btnStep.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnStepMouseClicked(evt);
          }
        });

    btnSolve.setText(resourceMap.getString("btnSolve.text")); // NOI18N
    btnSolve.setToolTipText(resourceMap.getString("btnSolve.toolTipText")); // NOI18N
    btnSolve.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnSolve.setMinimumSize(new java.awt.Dimension(70, 30));
    btnSolve.setName("btnSolve"); // NOI18N
    btnSolve.setPreferredSize(new java.awt.Dimension(70, 30));
    btnSolve.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnSolveMouseClicked(evt);
          }
        });

    btnClear.setText(resourceMap.getString("btnClear.text")); // NOI18N
    btnClear.setToolTipText(resourceMap.getString("btnClear.toolTipText")); // NOI18N
    btnClear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnClear.setMaximumSize(new java.awt.Dimension(50, 50));
    btnClear.setMinimumSize(new java.awt.Dimension(70, 30));
    btnClear.setName("btnClear"); // NOI18N
    btnClear.setPreferredSize(new java.awt.Dimension(70, 30));
    btnClear.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            btnClearMouseClicked(evt);
          }
        });

    javax.swing.GroupLayout pnButtonLayout = new javax.swing.GroupLayout(pnButton);
    pnButton.setLayout(pnButtonLayout);
    pnButtonLayout.setHorizontalGroup(
        pnButtonLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                pnButtonLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        pnButtonLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                pnButtonLayout
                                    .createParallelGroup(
                                        javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(
                                        btnVertex,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        70,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(
                                        btnEdge,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        70,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(
                                        btnStart,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        70,
                                        Short.MAX_VALUE)
                                    .addComponent(
                                        btnEnd,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        70,
                                        Short.MAX_VALUE)
                                    .addComponent(
                                        btnSolve,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        70,
                                        Short.MAX_VALUE)
                                    .addComponent(
                                        btnStep,
                                        javax.swing.GroupLayout.Alignment.CENTER,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        70,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(
                                btnClear,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                70,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pnButtonLayout.linkSize(
        javax.swing.SwingConstants.HORIZONTAL,
        new java.awt.Component[] {
          btnClear, btnEdge, btnEnd, btnSolve, btnStart, btnStep, btnVertex
        });

    pnButtonLayout.setVerticalGroup(
        pnButtonLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                pnButtonLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        btnVertex, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(
                        btnEdge, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(
                        btnStart, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(btnEnd, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(
                        btnSolve, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(
                        btnStep, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(
                        btnClear, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addGap(13, 13, 13)));

    btnVertex
        .getAccessibleContext()
        .setAccessibleDescription(
            resourceMap.getString("btnNode.AccessibleContext.accessibleDescription")); // NOI18N

    pnGraph.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            null,
            resourceMap.getString("pnGraph.border.title"),
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            resourceMap.getFont("pnGraph.border.titleFont"))); // NOI18N
    pnGraph.setToolTipText(resourceMap.getString("pnGraph.toolTipText")); // NOI18N
    pnGraph.setFont(resourceMap.getFont("pnGraph.font")); // NOI18N
    pnGraph.setMinimumSize(new java.awt.Dimension(600, 300));
    pnGraph.setName("pnGraph"); // NOI18N
    pnGraph.setPreferredSize(new java.awt.Dimension(600, 300));
    pnGraph.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseReleased(java.awt.event.MouseEvent evt) {
            pnGraphMouseReleased(evt);
          }
        });
    pnGraph.addMouseMotionListener(
        new java.awt.event.MouseMotionAdapter() {
          public void mouseMoved(java.awt.event.MouseEvent evt) {
            pnGraphMouseMoved(evt);
          }
        });

    jTextStatus.setEditable(false);
    jTextStatus.setFont(resourceMap.getFont("jTextStatus.font")); // NOI18N
    jTextStatus.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextStatus.setText(resourceMap.getString("jTextStatus.text")); // NOI18N
    jTextStatus.setAutoscrolls(false);
    jTextStatus.setBorder(null);
    jTextStatus.setName("jTextStatus"); // NOI18N

    jRandomCheck.setFont(resourceMap.getFont("jRandomCheck.font")); // NOI18N
    jRandomCheck.setSelected(true);
    jRandomCheck.setText(resourceMap.getString("jRandomCheck.text")); // NOI18N
    jRandomCheck.setToolTipText(resourceMap.getString("jRandomCheck.toolTipText")); // NOI18N
    jRandomCheck.setEnabled(false);
    jRandomCheck.setName("jRandomCheck"); // NOI18N

    javax.swing.GroupLayout pnGraphLayout = new javax.swing.GroupLayout(pnGraph);
    pnGraph.setLayout(pnGraphLayout);
    pnGraphLayout.setHorizontalGroup(
        pnGraphLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                pnGraphLayout
                    .createSequentialGroup()
                    .addContainerGap(327, Short.MAX_VALUE)
                    .addGroup(
                        pnGraphLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                pnGraphLayout
                                    .createSequentialGroup()
                                    .addComponent(jRandomCheck)
                                    .addContainerGap())
                            .addComponent(
                                jTextStatus,
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                261,
                                javax.swing.GroupLayout.PREFERRED_SIZE))));
    pnGraphLayout.setVerticalGroup(
        pnGraphLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                pnGraphLayout
                    .createSequentialGroup()
                    .addComponent(
                        jTextStatus,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 225, Short.MAX_VALUE)
                    .addComponent(jRandomCheck)
                    .addContainerGap()));

    pnHeap.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            null,
            resourceMap.getString("pnHeap.border.title"),
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            resourceMap.getFont("pnHeap.border.titleFont"))); // NOI18N
    pnHeap.setToolTipText(resourceMap.getString("pnHeap.toolTipText")); // NOI18N
    pnHeap.setFont(resourceMap.getFont("pnHeap.font")); // NOI18N
    pnHeap.setMinimumSize(new java.awt.Dimension(400, 250));
    pnHeap.setName("pnHeap"); // NOI18N
    pnHeap.setPreferredSize(new java.awt.Dimension(400, 250));

    jTextHeap.setFont(resourceMap.getFont("jTextHeap.font")); // NOI18N
    jTextHeap.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jTextHeap.setText(resourceMap.getString("jTextHeap.text")); // NOI18N
    jTextHeap.setName("jTextHeap"); // NOI18N

    javax.swing.GroupLayout pnHeapLayout = new javax.swing.GroupLayout(pnHeap);
    pnHeap.setLayout(pnHeapLayout);
    pnHeapLayout.setHorizontalGroup(
        pnHeapLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                pnHeapLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        jTextHeap, javax.swing.GroupLayout.DEFAULT_SIZE, 368, Short.MAX_VALUE)
                    .addContainerGap()));
    pnHeapLayout.setVerticalGroup(
        pnHeapLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                pnHeapLayout
                    .createSequentialGroup()
                    .addComponent(
                        jTextHeap,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        16,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(204, Short.MAX_VALUE)));

    jTextHeap
        .getAccessibleContext()
        .setAccessibleName(
            resourceMap.getString("jTextHeap.AccessibleContext.accessibleName")); // NOI18N

    pnSolution.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            null,
            resourceMap.getString("pnSolution.border.title"),
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            resourceMap.getFont("pnSolution.border.titleFont"))); // NOI18N
    pnSolution.setToolTipText(resourceMap.getString("pnSolution.toolTipText")); // NOI18N
    pnSolution.setMinimumSize(new java.awt.Dimension(290, 250));
    pnSolution.setName("pnSolution"); // NOI18N
    pnSolution.setPreferredSize(new java.awt.Dimension(290, 250));

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jSolution.setColumns(20);
    jSolution.setEditable(false);
    jSolution.setFont(resourceMap.getFont("jSolution.font")); // NOI18N
    jSolution.setLineWrap(true);
    jSolution.setRows(4);
    jSolution.setToolTipText(resourceMap.getString("jSolution.toolTipText")); // NOI18N
    jSolution.setWrapStyleWord(true);
    jSolution.setBorder(null);
    jSolution.setEnabled(false);
    jSolution.setFocusable(false);
    jSolution.setName("jSolution"); // NOI18N
    jScrollPane1.setViewportView(jSolution);

    javax.swing.GroupLayout pnSolutionLayout = new javax.swing.GroupLayout(pnSolution);
    pnSolution.setLayout(pnSolutionLayout);
    pnSolutionLayout.setHorizontalGroup(
        pnSolutionLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1,
                javax.swing.GroupLayout.Alignment.TRAILING,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                278,
                Short.MAX_VALUE));
    pnSolutionLayout.setVerticalGroup(
        pnSolutionLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE));

    javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
    mainPanel.setLayout(mainPanelLayout);
    mainPanelLayout.setHorizontalGroup(
        mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                mainPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        mainPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                mainPanelLayout
                                    .createSequentialGroup()
                                    .addComponent(
                                        pnButton,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        pnGraph,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE))
                            .addGroup(
                                mainPanelLayout
                                    .createSequentialGroup()
                                    .addComponent(
                                        pnHeap,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        pnSolution,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(9, 9, 9)));
    mainPanelLayout.setVerticalGroup(
        mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                mainPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        mainPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                pnButton,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                pnGraph,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        mainPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                pnHeap,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                pnSolution,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(15, 15, 15)));

    menuBar.setName("menuBar"); // NOI18N

    fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
    fileMenu.setName("fileMenu"); // NOI18N

    openMenuItem.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
    openMenuItem.setText(resourceMap.getString("openMenuItem.text")); // NOI18N
    openMenuItem.setToolTipText(resourceMap.getString("openMenuItem.toolTipText")); // NOI18N
    openMenuItem.setActionCommand(resourceMap.getString("openMenuItem.actionCommand")); // NOI18N
    openMenuItem.setName("openMenuItem"); // NOI18N
    openMenuItem.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            openMenuItemActionPerformed(evt);
          }
        });
    fileMenu.add(openMenuItem);

    saveMenuItem.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
    saveMenuItem.setText(resourceMap.getString("saveMenuItem.text")); // NOI18N
    saveMenuItem.setToolTipText(resourceMap.getString("saveMenuItem.toolTipText")); // NOI18N
    saveMenuItem.setName("saveMenuItem"); // NOI18N
    saveMenuItem.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveMenuItemActionPerformed(evt);
          }
        });
    fileMenu.add(saveMenuItem);

    jSeparator.setName("jSeparator"); // NOI18N
    fileMenu.add(jSeparator);

    javax.swing.ActionMap actionMap =
        org.jdesktop.application.Application.getInstance(dijkstra.DijkstraApp.class)
            .getContext()
            .getActionMap(DijkstraView.class, this);
    exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
    exitMenuItem.setName("exitMenuItem"); // NOI18N
    fileMenu.add(exitMenuItem);

    menuBar.add(fileMenu);

    helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
    helpMenu.setName("helpMenu"); // NOI18N

    aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
    aboutMenuItem.setName("aboutMenuItem"); // NOI18N
    helpMenu.add(aboutMenuItem);

    menuBar.add(helpMenu);

    jOpenFileChooser.setFileFilter(new AppFilter());
    jOpenFileChooser.setName("jOpenFileChooser"); // NOI18N

    jSaveFileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG);
    jSaveFileChooser.setFileFilter(new AppFilter());
    jSaveFileChooser.setName("jSaveFileChooser"); // NOI18N

    setComponent(mainPanel);
    setMenuBar(menuBar);
  } // </editor-fold>//GEN-END:initComponents