@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        lblMappingID = new javax.swing.JLabel();
        pnlTestButton = new javax.swing.JPanel();
        cmdTestQuery = new javax.swing.JButton();
        lblTestQuery = new javax.swing.JLabel();
        pnlCommandButton = new javax.swing.JPanel();
        cmdInsertMapping = new javax.swing.JButton();
        cmdCancel = new javax.swing.JButton();
        txtMappingID = new javax.swing.JTextField();
        splitTargetSource = new javax.swing.JSplitPane();
        pnlTargetQueryEditor = new javax.swing.JPanel();
        lblTargetQuery = new javax.swing.JLabel();
        scrTargetQuery = new javax.swing.JScrollPane();
        txtTargetQuery = new javax.swing.JTextPane();
        splitSQL = new javax.swing.JSplitPane();
        pnlSourceQueryEditor = new javax.swing.JPanel();
        lblSourceQuery = new javax.swing.JLabel();
        scrSourceQuery = new javax.swing.JScrollPane();
        txtSourceQuery = new javax.swing.JTextPane();
        pnlQueryResult = new javax.swing.JPanel();
        scrQueryResult = new javax.swing.JScrollPane();
        tblQueryResult = new javax.swing.JTable();

        setFocusable(false);
        setMinimumSize(new java.awt.Dimension(600, 500));
        setPreferredSize(new java.awt.Dimension(600, 500));
        setLayout(new java.awt.GridBagLayout());

        lblMappingID.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblMappingID.setText("Mapping ID:");
        lblMappingID.setFocusable(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(8, 10, 8, 0);
        add(lblMappingID, gridBagConstraints);

        cmdTestQuery.setIcon(IconLoader.getImageIcon("images/execute.png"));
        cmdTestQuery.setMnemonic('t');
        cmdTestQuery.setText("Test SQL Query");
        cmdTestQuery.setToolTipText("Execute the SQL query in the SQL query text pane\nand display the first 100 results in the table.");
        cmdTestQuery.setActionCommand("Test SQL query");
        cmdTestQuery.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        cmdTestQuery.setContentAreaFilled(false);
        cmdTestQuery.setIconTextGap(5);
        cmdTestQuery.setMaximumSize(new java.awt.Dimension(115, 25));
        cmdTestQuery.setMinimumSize(new java.awt.Dimension(115, 25));
        cmdTestQuery.setPreferredSize(new java.awt.Dimension(115, 25));
        cmdTestQuery.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmdTestQueryActionPerformed(evt);
            }
        });
        pnlTestButton.add(cmdTestQuery);

        lblTestQuery.setText("(100 rows)");
        pnlTestButton.add(lblTestQuery);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.insets = new java.awt.Insets(4, 10, 0, 0);
        add(pnlTestButton, gridBagConstraints);

        pnlCommandButton.setFocusable(false);
        pnlCommandButton.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

        cmdInsertMapping.setIcon(IconLoader.getImageIcon("images/accept.png"));
        cmdInsertMapping.setText("Accept");
        cmdInsertMapping.setToolTipText("This will add/edit the current mapping into the OBDA model");
        cmdInsertMapping.setActionCommand("OK");
        cmdInsertMapping.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        cmdInsertMapping.setContentAreaFilled(false);
        cmdInsertMapping.setIconTextGap(5);
        cmdInsertMapping.setPreferredSize(new java.awt.Dimension(90, 25));
        pnlCommandButton.add(cmdInsertMapping);

        cmdCancel.setIcon(IconLoader.getImageIcon("images/cancel.png"));
        cmdCancel.setText("Cancel");
        cmdCancel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        cmdCancel.setContentAreaFilled(false);
        cmdCancel.setIconTextGap(5);
        cmdCancel.setPreferredSize(new java.awt.Dimension(90, 25));
        cmdCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmdCancelActionPerformed(evt);
            }
        });
        pnlCommandButton.add(cmdCancel);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 4);
        add(pnlCommandButton, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(8, 0, 8, 10);
        add(txtMappingID, gridBagConstraints);

        splitTargetSource.setBorder(null);
        splitTargetSource.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        splitTargetSource.setResizeWeight(0.5);
        splitTargetSource.setDoubleBuffered(true);
        splitTargetSource.setFocusable(false);
        splitTargetSource.setMinimumSize(new java.awt.Dimension(600, 430));
        splitTargetSource.setOneTouchExpandable(true);
        splitTargetSource.setPreferredSize(new java.awt.Dimension(600, 430));

        pnlTargetQueryEditor.setFocusable(false);
        pnlTargetQueryEditor.setMinimumSize(new java.awt.Dimension(600, 180));
        pnlTargetQueryEditor.setPreferredSize(new java.awt.Dimension(600, 180));
        pnlTargetQueryEditor.setLayout(new java.awt.BorderLayout());

        lblTargetQuery.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblTargetQuery.setText("Target (Triples Template):");
        lblTargetQuery.setFocusable(false);
        pnlTargetQueryEditor.add(lblTargetQuery, java.awt.BorderLayout.NORTH);

        scrTargetQuery.setFocusable(false);
        scrTargetQuery.setMinimumSize(new java.awt.Dimension(600, 170));
        scrTargetQuery.setPreferredSize(new java.awt.Dimension(600, 170));

        txtTargetQuery.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 13)); // NOI18N
        txtTargetQuery.setFocusCycleRoot(false);
        txtTargetQuery.setMinimumSize(new java.awt.Dimension(600, 170));
        txtTargetQuery.setPreferredSize(new java.awt.Dimension(600, 170));
        scrTargetQuery.setViewportView(txtTargetQuery);

        pnlTargetQueryEditor.add(scrTargetQuery, java.awt.BorderLayout.CENTER);

        splitTargetSource.setLeftComponent(pnlTargetQueryEditor);

        splitSQL.setBorder(null);
        splitSQL.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        splitSQL.setResizeWeight(0.8);
        splitSQL.setFocusable(false);
        splitSQL.setMinimumSize(new java.awt.Dimension(600, 280));
        splitSQL.setOneTouchExpandable(true);
        splitSQL.setPreferredSize(new java.awt.Dimension(600, 280));

        pnlSourceQueryEditor.setFocusable(false);
        pnlSourceQueryEditor.setMinimumSize(new java.awt.Dimension(600, 150));
        pnlSourceQueryEditor.setPreferredSize(new java.awt.Dimension(600, 150));
        pnlSourceQueryEditor.setLayout(new java.awt.BorderLayout());

        lblSourceQuery.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblSourceQuery.setText("Source (SQL Query):");
        lblSourceQuery.setFocusable(false);
        pnlSourceQueryEditor.add(lblSourceQuery, java.awt.BorderLayout.NORTH);

        scrSourceQuery.setFocusable(false);

        txtSourceQuery.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 13)); // NOI18N
        txtSourceQuery.setFocusCycleRoot(false);
        scrSourceQuery.setViewportView(txtSourceQuery);

        pnlSourceQueryEditor.add(scrSourceQuery, java.awt.BorderLayout.CENTER);

        splitSQL.setTopComponent(pnlSourceQueryEditor);

        pnlQueryResult.setFocusable(false);
        pnlQueryResult.setMinimumSize(new java.awt.Dimension(600, 120));
        pnlQueryResult.setPreferredSize(new java.awt.Dimension(600, 120));
        pnlQueryResult.setLayout(new java.awt.BorderLayout());

        scrQueryResult.setFocusable(false);
        scrQueryResult.setPreferredSize(new java.awt.Dimension(454, 70));

        tblQueryResult.setMinimumSize(new java.awt.Dimension(600, 180));
        scrQueryResult.setViewportView(tblQueryResult);

        pnlQueryResult.add(scrQueryResult, java.awt.BorderLayout.CENTER);

        splitSQL.setBottomComponent(pnlQueryResult);

        splitTargetSource.setRightComponent(splitSQL);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);
        add(splitTargetSource, gridBagConstraints);

        getAccessibleContext().setAccessibleName("Mapping editor");
    }
@ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { java . awt . GridBagConstraints gridBagConstraints ; lblMappingID = new javax . swing . JLabel ( ) ; pnlTestButton = new javax . swing . JPanel ( ) ; cmdTestQuery = new javax . swing . JButton ( ) ; lblTestQuery = new javax . swing . JLabel ( ) ; pnlCommandButton = new javax . swing . JPanel ( ) ; cmdInsertMapping = new javax . swing . JButton ( ) ; cmdCancel = new javax . swing . JButton ( ) ; txtMappingID = new javax . swing . JTextField ( ) ; splitTargetSource = new javax . swing . JSplitPane ( ) ; pnlTargetQueryEditor = new javax . swing . JPanel ( ) ; lblTargetQuery = new javax . swing . JLabel ( ) ; scrTargetQuery = new javax . swing . JScrollPane ( ) ; txtTargetQuery = new javax . swing . JTextPane ( ) ; splitSQL = new javax . swing . JSplitPane ( ) ; pnlSourceQueryEditor = new javax . swing . JPanel ( ) ; lblSourceQuery = new javax . swing . JLabel ( ) ; scrSourceQuery = new javax . swing . JScrollPane ( ) ; txtSourceQuery = new javax . swing . JTextPane ( ) ; pnlQueryResult = new javax . swing . JPanel ( ) ; scrQueryResult = new javax . swing . JScrollPane ( ) ; tblQueryResult = new javax . swing . JTable ( ) ; setFocusable ( false ) ; setMinimumSize ( new java . awt . Dimension ( 600 , 500 ) ) ; setPreferredSize ( new java . awt . Dimension ( 600 , 500 ) ) ; setLayout ( new java . awt . GridBagLayout ( ) ) ; lblMappingID . setFont ( new java . awt . Font ( "Tahoma" , 1 , 11 ) ) ; lblMappingID . setText ( "Mapping ID:" ) ; lblMappingID . setFocusable ( false ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . insets = new java . awt . Insets ( 8 , 10 , 8 , 0 ) ; add ( lblMappingID , gridBagConstraints ) ; cmdTestQuery . setIcon ( IconLoader . getImageIcon ( "images/execute.png" ) ) ; cmdTestQuery . setMnemonic ( 't' ) ; cmdTestQuery . setText ( "Test SQL Query" ) ; cmdTestQuery . setToolTipText ( "Execute the SQL query in the SQL query text pane\nand display the first 100 results in the table." ) ; cmdTestQuery . setActionCommand ( "Test SQL query" ) ; cmdTestQuery . setBorder ( javax . swing . BorderFactory . createEtchedBorder ( ) ) ; cmdTestQuery . setContentAreaFilled ( false ) ; cmdTestQuery . setIconTextGap ( 5 ) ; cmdTestQuery . setMaximumSize ( new java . awt . Dimension ( 115 , 25 ) ) ; cmdTestQuery . setMinimumSize ( new java . awt . Dimension ( 115 , 25 ) ) ; cmdTestQuery . setPreferredSize ( new java . awt . Dimension ( 115 , 25 ) ) ; cmdTestQuery . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { cmdTestQueryActionPerformed ( evt ) ; } } ) ; pnlTestButton . add ( cmdTestQuery ) ; lblTestQuery . setText ( "(100 rows)" ) ; pnlTestButton . add ( lblTestQuery ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 5 ; gridBagConstraints . insets = new java . awt . Insets ( 4 , 10 , 0 , 0 ) ; add ( pnlTestButton , gridBagConstraints ) ; pnlCommandButton . setFocusable ( false ) ; pnlCommandButton . setLayout ( new java . awt . FlowLayout ( java . awt . FlowLayout . RIGHT ) ) ; cmdInsertMapping . setIcon ( IconLoader . getImageIcon ( "images/accept.png" ) ) ; cmdInsertMapping . setText ( "Accept" ) ; cmdInsertMapping . setToolTipText ( "This will add/edit the current mapping into the OBDA model" ) ; cmdInsertMapping . setActionCommand ( "OK" ) ; cmdInsertMapping . setBorder ( javax . swing . BorderFactory . createEtchedBorder ( ) ) ; cmdInsertMapping . setContentAreaFilled ( false ) ; cmdInsertMapping . setIconTextGap ( 5 ) ; cmdInsertMapping . setPreferredSize ( new java . awt . Dimension ( 90 , 25 ) ) ; pnlCommandButton . add ( cmdInsertMapping ) ; cmdCancel . setIcon ( IconLoader . getImageIcon ( "images/cancel.png" ) ) ; cmdCancel . setText ( "Cancel" ) ; cmdCancel . setBorder ( javax . swing . BorderFactory . createEtchedBorder ( ) ) ; cmdCancel . setContentAreaFilled ( false ) ; cmdCancel . setIconTextGap ( 5 ) ; cmdCancel . setPreferredSize ( new java . awt . Dimension ( 90 , 25 ) ) ; cmdCancel . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { cmdCancelActionPerformed ( evt ) ; } } ) ; pnlCommandButton . add ( cmdCancel ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridy = 7 ; gridBagConstraints . gridwidth = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . insets = new java . awt . Insets ( 0 , 0 , 10 , 4 ) ; add ( pnlCommandButton , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . weightx = 1.0 ; gridBagConstraints . insets = new java . awt . Insets ( 8 , 0 , 8 , 10 ) ; add ( txtMappingID , gridBagConstraints ) ; splitTargetSource . setBorder ( null ) ; splitTargetSource . setOrientation ( javax . swing . JSplitPane . VERTICAL_SPLIT ) ; splitTargetSource . setResizeWeight ( 0.5 ) ; splitTargetSource . setDoubleBuffered ( true ) ; splitTargetSource . setFocusable ( false ) ; splitTargetSource . setMinimumSize ( new java . awt . Dimension ( 600 , 430 ) ) ; splitTargetSource . setOneTouchExpandable ( true ) ; splitTargetSource . setPreferredSize ( new java . awt . Dimension ( 600 , 430 ) ) ; pnlTargetQueryEditor . setFocusable ( false ) ; pnlTargetQueryEditor . setMinimumSize ( new java . awt . Dimension ( 600 , 180 ) ) ; pnlTargetQueryEditor . setPreferredSize ( new java . awt . Dimension ( 600 , 180 ) ) ; pnlTargetQueryEditor . setLayout ( new java . awt . BorderLayout ( ) ) ; lblTargetQuery . setFont ( new java . awt . Font ( "Tahoma" , 1 , 11 ) ) ; lblTargetQuery . setText ( "Target (Triples Template):" ) ; lblTargetQuery . setFocusable ( false ) ; pnlTargetQueryEditor . add ( lblTargetQuery , java . awt . BorderLayout . NORTH ) ; scrTargetQuery . setFocusable ( false ) ; scrTargetQuery . setMinimumSize ( new java . awt . Dimension ( 600 , 170 ) ) ; scrTargetQuery . setPreferredSize ( new java . awt . Dimension ( 600 , 170 ) ) ; txtTargetQuery . setFont ( new java . awt . Font ( "Lucida Sans Typewriter" , 0 , 13 ) ) ; txtTargetQuery . setFocusCycleRoot ( false ) ; txtTargetQuery . setMinimumSize ( new java . awt . Dimension ( 600 , 170 ) ) ; txtTargetQuery . setPreferredSize ( new java . awt . Dimension ( 600 , 170 ) ) ; scrTargetQuery . setViewportView ( txtTargetQuery ) ; pnlTargetQueryEditor . add ( scrTargetQuery , java . awt . BorderLayout . CENTER ) ; splitTargetSource . setLeftComponent ( pnlTargetQueryEditor ) ; splitSQL . setBorder ( null ) ; splitSQL . setOrientation ( javax . swing . JSplitPane . VERTICAL_SPLIT ) ; splitSQL . setResizeWeight ( 0.8 ) ; splitSQL . setFocusable ( false ) ; splitSQL . setMinimumSize ( new java . awt . Dimension ( 600 , 280 ) ) ; splitSQL . setOneTouchExpandable ( true ) ; splitSQL . setPreferredSize ( new java . awt . Dimension ( 600 , 280 ) ) ; pnlSourceQueryEditor . setFocusable ( false ) ; pnlSourceQueryEditor . setMinimumSize ( new java . awt . Dimension ( 600 , 150 ) ) ; pnlSourceQueryEditor . setPreferredSize ( new java . awt . Dimension ( 600 , 150 ) ) ; pnlSourceQueryEditor . setLayout ( new java . awt . BorderLayout ( ) ) ; lblSourceQuery . setFont ( new java . awt . Font ( "Tahoma" , 1 , 11 ) ) ; lblSourceQuery . setText ( "Source (SQL Query):" ) ; lblSourceQuery . setFocusable ( false ) ; pnlSourceQueryEditor . add ( lblSourceQuery , java . awt . BorderLayout . NORTH ) ; scrSourceQuery . setFocusable ( false ) ; txtSourceQuery . setFont ( new java . awt . Font ( "Lucida Sans Typewriter" , 0 , 13 ) ) ; txtSourceQuery . setFocusCycleRoot ( false ) ; scrSourceQuery . setViewportView ( txtSourceQuery ) ; pnlSourceQueryEditor . add ( scrSourceQuery , java . awt . BorderLayout . CENTER ) ; splitSQL . setTopComponent ( pnlSourceQueryEditor ) ; pnlQueryResult . setFocusable ( false ) ; pnlQueryResult . setMinimumSize ( new java . awt . Dimension ( 600 , 120 ) ) ; pnlQueryResult . setPreferredSize ( new java . awt . Dimension ( 600 , 120 ) ) ; pnlQueryResult . setLayout ( new java . awt . BorderLayout ( ) ) ; scrQueryResult . setFocusable ( false ) ; scrQueryResult . setPreferredSize ( new java . awt . Dimension ( 454 , 70 ) ) ; tblQueryResult . setMinimumSize ( new java . awt . Dimension ( 600 , 180 ) ) ; scrQueryResult . setViewportView ( tblQueryResult ) ; pnlQueryResult . add ( scrQueryResult , java . awt . BorderLayout . CENTER ) ; splitSQL . setBottomComponent ( pnlQueryResult ) ; splitTargetSource . setRightComponent ( splitSQL ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . gridwidth = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1.0 ; gridBagConstraints . weighty = 1.0 ; gridBagConstraints . insets = new java . awt . Insets ( 0 , 10 , 0 , 10 ) ; add ( splitTargetSource , gridBagConstraints ) ; getAccessibleContext ( ) . setAccessibleName ( "Mapping editor" ) ; }
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.