Changeset 50 in tmcsimulator-scriptbuilder for trunk/src/event


Ignore:
Timestamp:
08/08/2017 11:09:34 AM (9 years ago)
Author:
bmcguffin
Message:

Added action listeners and functionality to all editor windows. Changes made inside windows will now be applied to the model.

Location:
trunk/src/event/editor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/event/editor/CCTVPanel.form

    r1 r50  
    3030                      <EmptySpace max="-2" attributes="0"/> 
    3131                      <Group type="103" groupAlignment="0" attributes="0"> 
    32                           <Component id="jTextField1" alignment="0" pref="487" max="32767" attributes="0"/> 
    33                           <Component id="dir" alignment="0" pref="487" max="32767" attributes="0"/> 
    34                           <Component id="toggle" alignment="0" pref="487" max="32767" attributes="0"/> 
     32                          <Component id="txtIDField" alignment="0" pref="487" max="32767" attributes="0"/> 
     33                          <Component id="txtDirField" alignment="0" pref="487" max="32767" attributes="0"/> 
     34                          <Component id="txtToggleField" alignment="0" pref="487" max="32767" attributes="0"/> 
    3535                      </Group> 
    3636                  </Group> 
     
    4848              <Group type="103" groupAlignment="3" attributes="0"> 
    4949                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> 
    50                   <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/> 
     50                  <Component id="txtIDField" alignment="3" min="-2" max="-2" attributes="0"/> 
    5151              </Group> 
    5252              <EmptySpace max="-2" attributes="0"/> 
    5353              <Group type="103" groupAlignment="3" attributes="0"> 
    5454                  <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/> 
    55                   <Component id="dir" alignment="3" min="-2" max="-2" attributes="0"/> 
     55                  <Component id="txtDirField" alignment="3" min="-2" max="-2" attributes="0"/> 
    5656              </Group> 
    5757              <EmptySpace max="-2" attributes="0"/> 
    5858              <Group type="103" groupAlignment="3" attributes="0"> 
    5959                  <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/> 
    60                   <Component id="toggle" alignment="3" min="-2" max="-2" attributes="0"/> 
     60                  <Component id="txtToggleField" alignment="3" min="-2" max="-2" attributes="0"/> 
    6161              </Group> 
    6262              <EmptySpace min="-2" pref="48" max="-2" attributes="0"/> 
     
    8282      </Properties> 
    8383    </Component> 
    84     <Component class="javax.swing.JFormattedTextField" name="dir"> 
     84    <Component class="javax.swing.JFormattedTextField" name="txtDirField"> 
    8585      <Properties> 
    8686        <Property name="formatterFactory" type="javax.swing.JFormattedTextField$AbstractFormatterFactory" editor="org.netbeans.modules.form.editors.AbstractFormatterFactoryEditor"> 
     
    9494      </Properties> 
    9595    </Component> 
    96     <Component class="javax.swing.JTextField" name="jTextField1"> 
     96    <Component class="javax.swing.JTextField" name="txtIDField"> 
    9797    </Component> 
    9898    <Component class="javax.swing.JLabel" name="jLabel2"> 
     
    101101      </Properties> 
    102102    </Component> 
    103     <Component class="javax.swing.JFormattedTextField" name="toggle"> 
     103    <Component class="javax.swing.JFormattedTextField" name="txtToggleField"> 
    104104      <Properties> 
    105105        <Property name="formatterFactory" type="javax.swing.JFormattedTextField$AbstractFormatterFactory" editor="org.netbeans.modules.form.editors.AbstractFormatterFactoryEditor"> 
  • trunk/src/event/editor/CCTVPanel.java

    r7 r50  
    2323        initComponents(); 
    2424 
    25         dir.addFocusListener(new FocusListener() 
     25        txtDirField.addFocusListener(new FocusListener() 
    2626        { 
    2727 
     
    3838        }); 
    3939 
    40         toggle.addFocusListener(new FocusListener() 
     40        txtToggleField.addFocusListener(new FocusListener() 
    4141        { 
    4242 
     
    6767    { 
    6868        event = (CCTVEvent) sei; 
     69        txtIDField.setText("NOT CURRENTLY IMPLEMENTED. NO EFFECT."); 
     70        txtDirField.setText("NOT CURRENTLY IMPLEMENTED. NO EFFECT."); 
     71        txtToggleField.setText("NOT CURRENTLY IMPLEMENTED. NO EFFECT."); 
    6972        //TODO: Add listeners for text fields 
    7073    } 
     
    8285    @SuppressWarnings("unchecked") 
    8386    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 
    84     private void initComponents() { 
     87    private void initComponents() 
     88    { 
    8589 
    8690        removeButton = new javax.swing.JButton(); 
    8791        jLabel1 = new javax.swing.JLabel(); 
    88         dir = new javax.swing.JFormattedTextField(); 
     92        txtDirField = new javax.swing.JFormattedTextField(); 
    8993        jLabel3 = new javax.swing.JLabel(); 
    90         jTextField1 = new javax.swing.JTextField(); 
     94        txtIDField = new javax.swing.JTextField(); 
    9195        jLabel2 = new javax.swing.JLabel(); 
    92         toggle = new javax.swing.JFormattedTextField(); 
     96        txtToggleField = new javax.swing.JFormattedTextField(); 
    9397        help = new javax.swing.JLabel(); 
    9498 
    9599        removeButton.setText("Remove"); 
    96         removeButton.addMouseListener(new java.awt.event.MouseAdapter() { 
    97             public void mouseClicked(java.awt.event.MouseEvent evt) { 
     100        removeButton.addMouseListener(new java.awt.event.MouseAdapter() 
     101        { 
     102            public void mouseClicked(java.awt.event.MouseEvent evt) 
     103            { 
    98104                removeButtonremoveThisProperty(evt); 
    99105            } 
    100106        }); 
    101         removeButton.addActionListener(new java.awt.event.ActionListener() { 
    102             public void actionPerformed(java.awt.event.ActionEvent evt) { 
     107        removeButton.addActionListener(new java.awt.event.ActionListener() 
     108        { 
     109            public void actionPerformed(java.awt.event.ActionEvent evt) 
     110            { 
    103111                removeButtonActionPerformed(evt); 
    104112            } 
     
    107115        jLabel1.setText("ID"); 
    108116 
    109         dir.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter())); 
     117        txtDirField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter())); 
    110118 
    111119        jLabel3.setText("Toggle"); 
     
    113121        jLabel2.setText("Dir"); 
    114122 
    115         toggle.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter())); 
     123        txtToggleField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter())); 
    116124 
    117125        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 
     
    131139                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 
    132140                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 
    133                             .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) 
    134                             .add(dir, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) 
    135                             .add(toggle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)))) 
     141                            .add(txtIDField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) 
     142                            .add(txtDirField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) 
     143                            .add(txtToggleField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)))) 
    136144                .addContainerGap()) 
    137145        ); 
     
    144152                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 
    145153                    .add(jLabel1) 
    146                     .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
     154                    .add(txtIDField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
    147155                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 
    148156                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 
    149157                    .add(jLabel2) 
    150                     .add(dir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
     158                    .add(txtDirField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
    151159                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 
    152160                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 
    153161                    .add(jLabel3) 
    154                     .add(toggle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
     162                    .add(txtToggleField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 
    155163                .add(48, 48, 48) 
    156164                .add(help, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 13, Short.MAX_VALUE) 
     
    172180 
    173181    // Variables declaration - do not modify//GEN-BEGIN:variables 
    174     private javax.swing.JFormattedTextField dir; 
    175182    private javax.swing.JLabel help; 
    176183    private javax.swing.JLabel jLabel1; 
    177184    private javax.swing.JLabel jLabel2; 
    178185    private javax.swing.JLabel jLabel3; 
    179     private javax.swing.JTextField jTextField1; 
    180186    private javax.swing.JButton removeButton; 
    181     private javax.swing.JFormattedTextField toggle; 
     187    private javax.swing.JFormattedTextField txtDirField; 
     188    private javax.swing.JTextField txtIDField; 
     189    private javax.swing.JFormattedTextField txtToggleField; 
    182190    // End of variables declaration//GEN-END:variables 
    183191 
  • trunk/src/event/editor/CMSEvaluationPanel.java

    r7 r50  
    4040        event = (CMSEvaluationEvent) sei; 
    4141        txtID.setText(event.cmsID); 
     42        txtID.addKeyListener(new KeyListener() 
     43        { 
     44 
     45            @Override 
     46            public void keyTyped(KeyEvent e) 
     47            { 
     48            } 
     49 
     50            @Override 
     51            public void keyPressed(KeyEvent e) 
     52            { 
     53                if (e.getKeyCode() == KeyEvent.VK_ENTER) 
     54                { 
     55                    event.cmsID = txtID.getText(); 
     56                } 
     57            } 
     58 
     59            @Override 
     60            public void keyReleased(KeyEvent e) 
     61            { 
     62            } 
     63        }); 
    4264        txtLocation.setText(event.location); 
     65        txtLocation.addKeyListener(new KeyListener() 
     66        { 
     67 
     68            @Override 
     69            public void keyTyped(KeyEvent e) 
     70            { 
     71            } 
     72 
     73            @Override 
     74            public void keyPressed(KeyEvent e) 
     75            { 
     76                if (e.getKeyCode() == KeyEvent.VK_ENTER) 
     77                { 
     78                    event.location = txtLocation.getText(); 
     79                } 
     80            } 
     81 
     82            @Override 
     83            public void keyReleased(KeyEvent e) 
     84            { 
     85            } 
     86        }); 
    4387        txtMessage.setText(""); 
    4488        for (int i = 0; i < event.message.size(); i++) 
    4589        { 
    46             for (MouseListener ml : addButton.getMouseListeners()) 
    47             { 
    48                 ml.mouseClicked(new MouseEvent(addButton, 1, 1, 1, 1, 1, 1, true)); 
    49             } 
    50             ((MyTableModel) dialogTable.getModel()).setValueAt(event.message.get(i), i, 1); 
     90            ((MyTableModel) dialogTable.getModel()).addRow("" + (i + 1), event.message.get(i)); 
    5191        } 
    5292        for (int i = 0; i < TypeDropdown.getItemCount(); i++) 
     
    5797            } 
    5898        } 
     99        TypeDropdown.addActionListener(new ActionListener() 
     100        { 
     101 
     102            @Override 
     103            public void actionPerformed(ActionEvent e) 
     104            { 
     105                event.cmsType = TypeDropdown.getSelectedItem().toString(); 
     106            } 
     107        }); 
     108        addButton.addActionListener(new ActionListener() 
     109        { 
     110 
     111            @Override 
     112            public void actionPerformed(ActionEvent e) 
     113            { 
     114                event.message.add(""); 
     115            } 
     116        }); 
    59117        dialogTable.getModel().addTableModelListener(new TableModelListener() 
    60118        { 
     
    64122                if (e.getType() == TableModelEvent.UPDATE) 
    65123                { 
    66                     event.message.set(e.getLastRow(), dialogTable.getModel().getValueAt(e.getLastRow(), 0).toString()); 
    67                 } 
    68                 if(e.getType() == TableModelEvent.DELETE) 
     124                    event.message.set(e.getLastRow(), dialogTable.getModel().getValueAt(e.getLastRow(), 1).toString()); 
     125                } 
     126                if (e.getType() == TableModelEvent.DELETE) 
    69127                { 
    70128                    event.message.remove(e.getLastRow()); 
     
    72130            } 
    73131        }); 
    74  
    75132    } 
    76133 
  • trunk/src/event/editor/ParamicsPanel.java

    r7 r50  
    4343            } 
    4444        } 
     45 
    4546        if (!containsItem) 
    4647        { 
     
    4849            LocationDropdown.setSelectedItem(LocationDropdown.getItemCount() - 1); 
    4950        } 
     51        LocationDropdown.addActionListener(new ActionListener() 
     52        { 
     53 
     54            @Override 
     55            public void actionPerformed(ActionEvent e) 
     56            { 
     57                event.locationID = LocationDropdown.getSelectedItem().toString(); 
     58            } 
     59        }); 
    5060        for (int i = 0; i < StatusDropdown.getItemCount(); i++) 
    5161        { 
     
    5565            } 
    5666        } 
     67        StatusDropdown.addActionListener(new ActionListener() 
     68        { 
     69 
     70            @Override 
     71            public void actionPerformed(ActionEvent e) 
     72            { 
     73                event.status = StatusDropdown.getSelectedItem().toString(); 
     74            } 
     75        }); 
    5776        for (int i = 0; i < TypeDropdown.getItemCount(); i++) 
    5877        { 
     
    6281            } 
    6382        } 
     83        TypeDropdown.addActionListener(new ActionListener() 
     84        { 
     85 
     86            @Override 
     87            public void actionPerformed(ActionEvent e) 
     88            { 
     89                event.type = TypeDropdown.getSelectedItem().toString(); 
     90            } 
     91        }); 
    6492        ArrayList<JCheckBox> lanes = new ArrayList<JCheckBox>(); 
    6593        lanes.add(jCheckBox1); 
     
    323351 
    324352    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed 
    325         // TODO add your handling code here: 
     353        if (jCheckBox1.isSelected()) 
     354        { 
     355            if (!event.laneNums.contains(1)) 
     356            { 
     357                event.laneNums.add(1); 
     358            } 
     359        } 
     360        else 
     361        { 
     362            if (event.laneNums.contains(1)) 
     363            { 
     364                event.laneNums.remove(1); 
     365            } 
     366        } 
    326367    }//GEN-LAST:event_jCheckBox1ActionPerformed 
    327368 
    328369    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed 
    329         // TODO add your handling code here: 
     370        if (jCheckBox2.isSelected()) 
     371        { 
     372            if (!event.laneNums.contains(2)) 
     373            { 
     374                event.laneNums.add(2); 
     375            } 
     376        } 
     377        else 
     378        { 
     379            if (event.laneNums.contains(2)) 
     380            { 
     381                event.laneNums.remove(2); 
     382            } 
     383        } 
    330384    }//GEN-LAST:event_jCheckBox2ActionPerformed 
    331385 
    332386    private void jCheckBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox3ActionPerformed 
    333         // TODO add your handling code here: 
     387        if (jCheckBox3.isSelected()) 
     388        { 
     389            if (!event.laneNums.contains(3)) 
     390            { 
     391                event.laneNums.add(3); 
     392            } 
     393        } 
     394        else 
     395        { 
     396            if (event.laneNums.contains(3)) 
     397            { 
     398                event.laneNums.remove(3); 
     399            } 
     400        } 
    334401    }//GEN-LAST:event_jCheckBox3ActionPerformed 
    335402 
    336403    private void jCheckBox4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox4ActionPerformed 
    337         // TODO add your handling code here: 
     404        if (jCheckBox4.isSelected()) 
     405        { 
     406            if (!event.laneNums.contains(4)) 
     407            { 
     408                event.laneNums.add(4); 
     409            } 
     410        } 
     411        else 
     412        { 
     413            if (event.laneNums.contains(4)) 
     414            { 
     415                event.laneNums.remove(4); 
     416            } 
     417        } 
    338418    }//GEN-LAST:event_jCheckBox4ActionPerformed 
    339419 
    340420    private void jCheckBox5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox5ActionPerformed 
    341         // TODO add your handling code here: 
     421        if (jCheckBox5.isSelected()) 
     422        { 
     423            if (!event.laneNums.contains(5)) 
     424            { 
     425                event.laneNums.add(5); 
     426            } 
     427        } 
     428        else 
     429        { 
     430            if (event.laneNums.contains(5)) 
     431            { 
     432                event.laneNums.remove(5); 
     433            } 
     434        } 
    342435    }//GEN-LAST:event_jCheckBox5ActionPerformed 
    343436 
    344437    private void jCheckBox6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox6ActionPerformed 
    345         // TODO add your handling code here: 
     438        if (jCheckBox6.isSelected()) 
     439        { 
     440            if (!event.laneNums.contains(6)) 
     441            { 
     442                event.laneNums.add(6); 
     443            } 
     444        } 
     445        else 
     446        { 
     447            if (event.laneNums.contains(6)) 
     448            { 
     449                event.laneNums.remove(6); 
     450            } 
     451        } 
    346452    }//GEN-LAST:event_jCheckBox6ActionPerformed 
    347453 
    348454    private void jCheckBox7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox7ActionPerformed 
    349         // TODO add your handling code here: 
     455        if (jCheckBox7.isSelected()) 
     456        { 
     457            if (!event.laneNums.contains(7)) 
     458            { 
     459                event.laneNums.add(7); 
     460            } 
     461        } 
     462        else 
     463        { 
     464            if (event.laneNums.contains(7)) 
     465            { 
     466                event.laneNums.remove(7); 
     467            } 
     468        } 
    350469    }//GEN-LAST:event_jCheckBox7ActionPerformed 
    351470 
    352471    private void jCheckBox8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox8ActionPerformed 
    353         // TODO add your handling code here: 
     472        if (jCheckBox8.isSelected()) 
     473        { 
     474            if (!event.laneNums.contains(8)) 
     475            { 
     476                event.laneNums.add(8); 
     477            } 
     478        } 
     479        else 
     480        { 
     481            if (event.laneNums.contains(8)) 
     482            { 
     483                event.laneNums.remove(8); 
     484            } 
     485        } 
    354486    }//GEN-LAST:event_jCheckBox8ActionPerformed 
    355487 
    356488    private void jCheckBox9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox9ActionPerformed 
    357         // TODO add your handling code here: 
     489        if (jCheckBox9.isSelected()) 
     490        { 
     491            if (!event.laneNums.contains(9)) 
     492            { 
     493                event.laneNums.add(9); 
     494            } 
     495        } 
     496        else 
     497        { 
     498            if (event.laneNums.contains(9)) 
     499            { 
     500                event.laneNums.remove(9); 
     501            } 
     502        } 
    358503    }//GEN-LAST:event_jCheckBox9ActionPerformed 
    359504 
    360505    private void jCheckBox10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox10ActionPerformed 
    361         // TODO add your handling code here: 
     506        if (jCheckBox10.isSelected()) 
     507        { 
     508            if (!event.laneNums.contains(10)) 
     509            { 
     510                event.laneNums.add(10); 
     511            } 
     512        } 
     513        else 
     514        { 
     515            if (event.laneNums.contains(10)) 
     516            { 
     517                event.laneNums.remove(10); 
     518            } 
     519        } 
    362520    }//GEN-LAST:event_jCheckBox10ActionPerformed 
    363521 
  • trunk/src/event/editor/WitnessPanel.java

    r7 r50  
    3030    } 
    3131 
    32      
    3332    public void getEventObject(I_ScriptEvent sei) 
    3433    { 
    3534        event = (WitnessEvent) sei; 
    3635        StringTokenizer st = new StringTokenizer(event.witnessName); 
    37         txtFirstName.setText(st.nextToken()); 
     36        if (st.hasMoreTokens()) 
     37        { 
     38            txtFirstName.setText(st.nextToken()); 
     39        } 
    3840        txtFirstName.addKeyListener(new KeyListener() 
    3941        { 
     
    4143            { 
    4244            } 
    43             public void keyPressed(KeyEvent e) 
    44             { 
    45                 if (e.getKeyCode() == KeyEvent.VK_ENTER) 
    46                 { 
    47                     event.witnessName = txtFirstName.getText() + " "+txtLastName.getText(); 
    48                 } 
    49             } 
     45 
     46            public void keyPressed(KeyEvent e) 
     47            { 
     48                if (e.getKeyCode() == KeyEvent.VK_ENTER) 
     49                { 
     50                    event.witnessName = txtFirstName.getText() + " " + txtLastName.getText(); 
     51                } 
     52            } 
     53 
    5054            public void keyReleased(KeyEvent e) 
    5155            { 
     
    6266            { 
    6367            } 
    64             public void keyPressed(KeyEvent e) 
    65             { 
    66                 if (e.getKeyCode() == KeyEvent.VK_ENTER) 
    67                 { 
    68                     event.witnessName = txtFirstName.getText() + " "+txtLastName.getText(); 
    69                 } 
    70             } 
     68 
     69            public void keyPressed(KeyEvent e) 
     70            { 
     71                if (e.getKeyCode() == KeyEvent.VK_ENTER) 
     72                { 
     73                    event.witnessName = txtFirstName.getText() + " " + txtLastName.getText(); 
     74                } 
     75            } 
     76 
    7177            public void keyReleased(KeyEvent e) 
    7278            { 
     
    7985            { 
    8086            } 
     87 
    8188            public void keyPressed(KeyEvent e) 
    8289            { 
     
    8693                } 
    8794            } 
     95 
    8896            public void keyReleased(KeyEvent e) 
    8997            { 
     
    96104            { 
    97105            } 
     106 
    98107            public void keyPressed(KeyEvent e) 
    99108            { 
     
    103112                } 
    104113            } 
     114 
    105115            public void keyReleased(KeyEvent e) 
    106116            { 
Note: See TracChangeset for help on using the changeset viewer.