Changeset 124 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui


Ignore:
Timestamp:
09/26/2017 09:09:29 AM (9 years ago)
Author:
jdalbey
Message:

IncidentEditorFrame?.java: Make text fields in "Incident Information" panel of Incident Editor disabled and change disabled text color to black. Fixes #26.

Location:
trunk/src/scriptbuilder/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/IncidentEditorFrame.form

    r121 r124  
    759759            <Property name="editable" type="boolean" value="false"/> 
    760760            <Property name="text" type="java.lang.String" value="Media"/> 
     761            <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 
     762              <Color blue="1f" green="1f" red="1f" type="rgb"/> 
     763            </Property> 
     764            <Property name="enabled" type="boolean" value="false"/> 
    761765          </Properties> 
    762766        </Component> 
     
    779783                <Property name="text" type="java.lang.String" value="All media message events are found in this incident."/> 
    780784                <Property name="wrapStyleWord" type="boolean" value="true"/> 
     785                <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 
     786                  <Color blue="1f" green="1f" red="1f" type="rgb"/> 
     787                </Property> 
     788                <Property name="enabled" type="boolean" value="false"/> 
    781789              </Properties> 
    782790            </Component> 
     
    787795            <Property name="editable" type="boolean" value="false"/> 
    788796            <Property name="text" type="java.lang.String" value="100"/> 
     797            <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 
     798              <Color blue="f" green="f" red="13" type="rgb"/> 
     799            </Property> 
     800            <Property name="enabled" type="boolean" value="false"/> 
    789801          </Properties> 
    790802        </Component> 
  • trunk/src/scriptbuilder/gui/IncidentEditorFrame.java

    r121 r124  
    406406    @SuppressWarnings("unchecked") 
    407407    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 
    408     private void initComponents() 
    409     { 
     408    private void initComponents() { 
    410409 
    411410        eventPopupMenu = new javax.swing.JPopupMenu(); 
     
    492491 
    493492        cadEvent.setText("CAD Event"); 
    494         cadEvent.addMouseListener(new java.awt.event.MouseAdapter() 
    495         { 
    496             public void mousePressed(java.awt.event.MouseEvent evt) 
    497             { 
     493        cadEvent.addMouseListener(new java.awt.event.MouseAdapter() { 
     494            public void mousePressed(java.awt.event.MouseEvent evt) { 
    498495                cadEventMousePressed(evt); 
    499496            } 
    500             public void mouseReleased(java.awt.event.MouseEvent evt) 
    501             { 
     497            public void mouseReleased(java.awt.event.MouseEvent evt) { 
    502498                cadEventMouseReleased(evt); 
    503499            } 
     
    509505 
    510506        radioEvent.setText("Radio Event"); 
    511         radioEvent.addMouseListener(new java.awt.event.MouseAdapter() 
    512         { 
    513             public void mousePressed(java.awt.event.MouseEvent evt) 
    514             { 
     507        radioEvent.addMouseListener(new java.awt.event.MouseAdapter() { 
     508            public void mousePressed(java.awt.event.MouseEvent evt) { 
    515509                radioEventMousePressed(evt); 
    516510            } 
     
    566560 
    567561        okButton.setText("OK"); 
    568         okButton.addActionListener(new java.awt.event.ActionListener() 
    569         { 
    570             public void actionPerformed(java.awt.event.ActionEvent evt) 
    571             { 
     562        okButton.addActionListener(new java.awt.event.ActionListener() { 
     563            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    572564                okButtonActionPerformed(evt); 
    573565            } 
     
    575567 
    576568        cancelButton.setText("Cancel"); 
    577         cancelButton.addActionListener(new java.awt.event.ActionListener() 
    578         { 
    579             public void actionPerformed(java.awt.event.ActionEvent evt) 
    580             { 
     569        cancelButton.addActionListener(new java.awt.event.ActionListener() { 
     570            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    581571                cancelButtonActionPerformed(evt); 
    582572            } 
     
    621611 
    622612        editEventList.setText("Edit..."); 
    623         editEventList.addActionListener(new java.awt.event.ActionListener() 
    624         { 
    625             public void actionPerformed(java.awt.event.ActionEvent evt) 
    626             { 
     613        editEventList.addActionListener(new java.awt.event.ActionListener() { 
     614            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    627615                editEventListActionPerformed(evt); 
    628616            } 
     
    666654 
    667655        btnCancelNoise.setText("Cancel"); 
    668         btnCancelNoise.addActionListener(new java.awt.event.ActionListener() 
    669         { 
    670             public void actionPerformed(java.awt.event.ActionEvent evt) 
    671             { 
     656        btnCancelNoise.addActionListener(new java.awt.event.ActionListener() { 
     657            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    672658                btnCancelNoiseActionPerformed(evt); 
    673659            } 
     
    675661 
    676662        btnGenerateNoise.setText("Generate"); 
    677         btnGenerateNoise.addActionListener(new java.awt.event.ActionListener() 
    678         { 
    679             public void actionPerformed(java.awt.event.ActionEvent evt) 
    680             { 
     663        btnGenerateNoise.addActionListener(new java.awt.event.ActionListener() { 
     664            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    681665                btnGenerateNoiseActionPerformed(evt); 
    682666            } 
     
    853837        zoomSlider.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); 
    854838        zoomSlider.setFocusable(false); 
    855         zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() 
    856         { 
    857             public void stateChanged(javax.swing.event.ChangeEvent evt) 
    858             { 
     839        zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() { 
     840            public void stateChanged(javax.swing.event.ChangeEvent evt) { 
    859841                zoomSliderStateChanged(evt); 
    860842            } 
     
    871853        incidentName.setEditable(false); 
    872854        incidentName.setText("Media"); 
     855        incidentName.setDisabledTextColor(new java.awt.Color(31, 31, 31)); 
     856        incidentName.setEnabled(false); 
    873857 
    874858        incidentDescriptionPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); 
     
    880864        incidentDescription.setText("All media message events are found in this incident."); 
    881865        incidentDescription.setWrapStyleWord(true); 
     866        incidentDescription.setDisabledTextColor(new java.awt.Color(31, 31, 31)); 
     867        incidentDescription.setEnabled(false); 
    882868        incidentDescriptionPane.setViewportView(incidentDescription); 
    883869 
    884870        incidentNumber.setEditable(false); 
    885871        incidentNumber.setText("100"); 
     872        incidentNumber.setDisabledTextColor(new java.awt.Color(19, 15, 15)); 
     873        incidentNumber.setEnabled(false); 
    886874 
    887875        javax.swing.GroupLayout incidentInformationPanelLayout = new javax.swing.GroupLayout(incidentInformationPanel); 
     
    929917        maintenanceRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    930918        maintenanceRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    931         maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() 
    932         { 
    933             public void actionPerformed(java.awt.event.ActionEvent evt) 
    934             { 
     919        maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() { 
     920            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    935921                maintenanceRadioButtonActionPerformed(evt); 
    936922            } 
     
    943929        tmtRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    944930        tmtRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    945         tmtRadioButton.addActionListener(new java.awt.event.ActionListener() 
    946         { 
    947             public void actionPerformed(java.awt.event.ActionEvent evt) 
    948             { 
     931        tmtRadioButton.addActionListener(new java.awt.event.ActionListener() { 
     932            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    949933                tmtRadioButtonActionPerformed(evt); 
    950934            } 
     
    957941        telephoneButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    958942        telephoneButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    959         telephoneButton.addActionListener(new java.awt.event.ActionListener() 
    960         { 
    961             public void actionPerformed(java.awt.event.ActionEvent evt) 
    962             { 
     943        telephoneButton.addActionListener(new java.awt.event.ActionListener() { 
     944            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    963945                telephoneButtonActionPerformed(evt); 
    964946            } 
     
    971953        unitButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    972954        unitButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    973         unitButton.addActionListener(new java.awt.event.ActionListener() 
    974         { 
    975             public void actionPerformed(java.awt.event.ActionEvent evt) 
    976             { 
     955        unitButton.addActionListener(new java.awt.event.ActionListener() { 
     956            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    977957                unitButtonActionPerformed(evt); 
    978958            } 
     
    985965        witnessButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    986966        witnessButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    987         witnessButton.addActionListener(new java.awt.event.ActionListener() 
    988         { 
    989             public void actionPerformed(java.awt.event.ActionEvent evt) 
    990             { 
     967        witnessButton.addActionListener(new java.awt.event.ActionListener() { 
     968            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    991969                witnessButtonActionPerformed(evt); 
    992970            } 
     
    999977        paramicsButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    1000978        paramicsButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1001         paramicsButton.addActionListener(new java.awt.event.ActionListener() 
    1002         { 
    1003             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1004             { 
     979        paramicsButton.addActionListener(new java.awt.event.ActionListener() { 
     980            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    1005981                paramicsButtonActionPerformed(evt); 
    1006982            } 
     
    1013989        towButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    1014990        towButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1015         towButton.addActionListener(new java.awt.event.ActionListener() 
    1016         { 
    1017             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1018             { 
     991        towButton.addActionListener(new java.awt.event.ActionListener() { 
     992            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    1019993                towButtonActionPerformed(evt); 
    1020994            } 
     
    10271001        audioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    10281002        audioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1029         audioButton.addActionListener(new java.awt.event.ActionListener() 
    1030         { 
    1031             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1032             { 
     1003        audioButton.addActionListener(new java.awt.event.ActionListener() { 
     1004            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    10331005                audioButtonActionPerformed(evt); 
    10341006            } 
     
    10411013        cctvButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    10421014        cctvButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1043         cctvButton.addActionListener(new java.awt.event.ActionListener() 
    1044         { 
    1045             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1046             { 
     1015        cctvButton.addActionListener(new java.awt.event.ActionListener() { 
     1016            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    10471017                cctvButtonActionPerformed(evt); 
    10481018            } 
     
    10551025        cadButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    10561026        cadButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1057         cadButton.addActionListener(new java.awt.event.ActionListener() 
    1058         { 
    1059             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1060             { 
     1027        cadButton.addActionListener(new java.awt.event.ActionListener() { 
     1028            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    10611029                cadButtonActionPerformed(evt); 
    10621030            } 
     
    10691037        chpRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    10701038        chpRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1071         chpRadioButton.addActionListener(new java.awt.event.ActionListener() 
    1072         { 
    1073             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1074             { 
     1039        chpRadioButton.addActionListener(new java.awt.event.ActionListener() { 
     1040            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    10751041                chpRadioButtonActionPerformed(evt); 
    10761042            } 
     
    11411107        atmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    11421108        atmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1143         atmsEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1144         { 
    1145             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1146             { 
     1109        atmsEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1110            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    11471111                atmsEvalButtonActionPerformed(evt); 
    11481112            } 
     
    11551119        cmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    11561120        cmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1157         cmsEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1158         { 
    1159             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1160             { 
     1121        cmsEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1122            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    11611123                cmsEvalButtonActionPerformed(evt); 
    11621124            } 
     
    11691131        cadEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    11701132        cadEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1171         cadEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1172         { 
    1173             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1174             { 
     1133        cadEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1134            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    11751135                cadEvalButtonActionPerformed(evt); 
    11761136            } 
     
    11831143        facilitatorEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    11841144        facilitatorEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1185         facilitatorEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1186         { 
    1187             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1188             { 
     1145        facilitatorEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1146            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    11891147                facilitatorEvalButtonActionPerformed(evt); 
    11901148            } 
     
    11971155        activityLogEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    11981156        activityLogEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1199         activityLogEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1200         { 
    1201             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1202             { 
     1157        activityLogEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1158            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    12031159                activityLogEvalButtonActionPerformed(evt); 
    12041160            } 
     
    12111167        radioEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 
    12121168        radioEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 
    1213         radioEvalButton.addActionListener(new java.awt.event.ActionListener() 
    1214         { 
    1215             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1216             { 
     1169        radioEvalButton.addActionListener(new java.awt.event.ActionListener() { 
     1170            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    12171171                radioEvalButtonActionPerformed(evt); 
    12181172            } 
     
    12581212        zoomInIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomIn.png"))); // NOI18N 
    12591213        zoomInIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 
    1260         zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() 
    1261         { 
    1262             public void mouseClicked(java.awt.event.MouseEvent evt) 
    1263             { 
     1214        zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() { 
     1215            public void mouseClicked(java.awt.event.MouseEvent evt) { 
    12641216                zoomInIconMouseClicked(evt); 
    12651217            } 
     
    12681220        zoomOutIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomOut.png"))); // NOI18N 
    12691221        zoomOutIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 
    1270         zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() 
    1271         { 
    1272             public void mouseClicked(java.awt.event.MouseEvent evt) 
    1273             { 
     1222        zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() { 
     1223            public void mouseClicked(java.awt.event.MouseEvent evt) { 
    12741224                zoomOutIconMouseClicked(evt); 
    12751225            } 
     
    13111261 
    13121262        btnAddTime.setText("+15:00"); 
    1313         btnAddTime.addActionListener(new java.awt.event.ActionListener() 
    1314         { 
    1315             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1316             { 
     1263        btnAddTime.addActionListener(new java.awt.event.ActionListener() { 
     1264            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    13171265                btnAddTimeActionPerformed(evt); 
    13181266            } 
     
    13201268 
    13211269        btnToggleTimeStart.setText("to Start"); 
    1322         btnToggleTimeStart.addActionListener(new java.awt.event.ActionListener() 
    1323         { 
    1324             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1325             { 
     1270        btnToggleTimeStart.addActionListener(new java.awt.event.ActionListener() { 
     1271            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    13261272                btnToggleTimeStartActionPerformed(evt); 
    13271273            } 
     
    13301276        btnToggleTimeEnd.setSelected(true); 
    13311277        btnToggleTimeEnd.setText("to End"); 
    1332         btnToggleTimeEnd.addActionListener(new java.awt.event.ActionListener() 
    1333         { 
    1334             public void actionPerformed(java.awt.event.ActionEvent evt) 
    1335             { 
     1278        btnToggleTimeEnd.addActionListener(new java.awt.event.ActionListener() { 
     1279            public void actionPerformed(java.awt.event.ActionEvent evt) { 
    13361280                btnToggleTimeEndActionPerformed(evt); 
    13371281            } 
Note: See TracChangeset for help on using the changeset viewer.