Changeset 184 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder
- Timestamp:
- 01/12/2020 04:01:21 PM (6 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 2 edited
-
IncidentEditorFrame.form (modified) (13 diffs)
-
IncidentEditorFrame.java (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.form
r160 r184 448 448 <Group type="103" groupAlignment="0" attributes="0"> 449 449 <Group type="102" alignment="0" attributes="0"> 450 <EmptySpace min="-2" pref="46" max="-2" attributes="0"/>451 450 <Component id="incidentEventsPanel" min="-2" max="-2" attributes="0"/> 452 451 <EmptySpace max="-2" attributes="0"/> 452 <Component id="jPanel1" min="-2" max="-2" attributes="0"/> 453 <EmptySpace max="-2" attributes="0"/> 453 454 <Component id="evaluationEventsPanel" min="-2" max="-2" attributes="0"/> 454 <EmptySpace min="-2" max="-2" attributes="0"/>455 <EmptySpace type="separate" max="-2" attributes="0"/> 455 456 <Group type="103" groupAlignment="0" attributes="0"> 456 457 <Component id="zoomInIcon" alignment="0" min="-2" max="-2" attributes="0"/> … … 462 463 </Group> 463 464 <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 464 <Component id="timeStampScrollPane" alignment="0" pref="0"max="32767" attributes="0"/>465 <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 465 466 <Group type="102" alignment="1" attributes="0"> 466 467 <Component id="incidentInformationPanel" max="32767" attributes="0"/> … … 468 469 <Component id="scriptEventsPanel" max="32767" attributes="0"/> 469 470 </Group> 470 <Component id="timeStampScrollPane1" alignment="0" pref="0"max="32767" attributes="0"/>471 <Component id="timeStampScrollPane1" alignment="0" max="32767" attributes="0"/> 471 472 </Group> 472 473 <EmptySpace max="-2" attributes="0"/> … … 477 478 <Group type="103" groupAlignment="0" attributes="0"> 478 479 <Group type="102" alignment="1" attributes="0"> 479 <Group type="103" groupAlignment="0" max="-2"attributes="0">480 <Group type="103" groupAlignment="0" attributes="0"> 480 481 <Group type="102" attributes="0"> 481 482 <EmptySpace max="-2" attributes="0"/> … … 483 484 <Component id="evaluationEventsPanel" alignment="0" min="-2" max="-2" attributes="1"/> 484 485 <Component id="incidentEventsPanel" alignment="0" min="-2" max="-2" attributes="1"/> 486 <Component id="jPanel1" alignment="0" min="-2" max="-2" attributes="0"/> 485 487 </Group> 486 488 </Group> … … 499 501 </Group> 500 502 </Group> 501 <EmptySpace min="-2" max="-2" attributes="0"/>503 <EmptySpace min="-2" pref="11" max="-2" attributes="0"/> 502 504 <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 503 505 <EmptySpace min="-2" max="-2" attributes="0"/> … … 807 809 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 808 810 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 809 <TitledBorder title=" IncidentEvents"/>811 <TitledBorder title="Automated Events"/> 810 812 </Border> 811 813 </Property> … … 816 818 <Group type="103" groupAlignment="0" attributes="0"> 817 819 <Group type="102" alignment="0" attributes="0"> 818 <EmptySpace max=" -2" attributes="0"/>820 <EmptySpace max="32767" attributes="0"/> 819 821 <Group type="103" groupAlignment="0" attributes="0"> 820 <Group type="103" alignment="0" groupAlignment="0" attributes="0">821 <Group type="102" alignment="1" attributes="0">822 <Component id="maintenanceRadioButton" min="-2" pref="120" max="-2" attributes="0"/>823 <EmptySpace max="-2" attributes="0"/>824 <Component id="tmtRadioButton" min="-2" pref="120" max="-2" attributes="0"/>825 <EmptySpace max="-2" attributes="0"/>826 <Component id="telephoneButton" min="-2" pref="120" max="-2" attributes="0"/>827 <EmptySpace max="-2" attributes="0"/>828 <Component id="paramicsButton" min="-2" pref="120" max="-2" attributes="0"/>829 </Group>830 <Group type="102" alignment="0" attributes="0">831 <Component id="towButton" min="-2" pref="120" max="-2" attributes="0"/>832 <EmptySpace max="-2" attributes="0"/>833 <Component id="unitButton" min="-2" pref="120" max="-2" attributes="0"/>834 <EmptySpace max="-2" attributes="0"/>835 <Component id="witnessButton" min="-2" pref="120" max="-2" attributes="0"/>836 </Group>837 </Group>838 822 <Group type="102" alignment="0" attributes="0"> 839 823 <Component id="cadButton" min="-2" pref="120" max="-2" attributes="0"/> … … 843 827 <Component id="chpRadioButton" min="-2" pref="120" max="-2" attributes="0"/> 844 828 </Group> 845 </Group> 846 <EmptySpace max="32767" attributes="0"/> 829 <Group type="102" alignment="0" attributes="0"> 830 <Component id="towButton" min="-2" pref="120" max="-2" attributes="0"/> 831 <EmptySpace max="-2" attributes="0"/> 832 <Component id="unitButton" min="-2" pref="120" max="-2" attributes="0"/> 833 <EmptySpace max="-2" attributes="0"/> 834 <Component id="witnessButton" min="-2" pref="120" max="-2" attributes="0"/> 835 </Group> 836 <Group type="102" alignment="0" attributes="0"> 837 <EmptySpace min="-2" pref="126" max="-2" attributes="0"/> 838 <Component id="paramicsButton" min="-2" pref="120" max="-2" attributes="0"/> 839 </Group> 840 </Group> 841 <EmptySpace min="-2" pref="6" max="-2" attributes="0"/> 847 842 </Group> 848 843 </Group> … … 851 846 <Group type="103" groupAlignment="0" attributes="0"> 852 847 <Group type="102" alignment="0" attributes="0"> 853 <Group type="103" groupAlignment="0" attributes="0"> 854 <Group type="102" attributes="0"> 855 <Group type="103" groupAlignment="3" attributes="0"> 856 <Component id="maintenanceRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 857 <Component id="tmtRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 858 <Component id="telephoneButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 859 </Group> 860 <EmptySpace max="-2" attributes="0"/> 861 <Group type="103" groupAlignment="3" attributes="0"> 862 <Component id="towButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 863 <Component id="unitButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 864 <Component id="witnessButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 865 </Group> 866 </Group> 867 <Component id="paramicsButton" min="-2" pref="30" max="-2" attributes="0"/> 868 </Group> 869 <EmptySpace max="-2" attributes="0"/> 870 <Group type="103" groupAlignment="1" attributes="0"> 871 <Group type="103" alignment="1" groupAlignment="3" attributes="0"> 872 <Component id="cctvButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 873 <Component id="chpRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 874 </Group> 875 <Component id="cadButton" min="-2" pref="30" max="-2" attributes="0"/> 876 </Group> 848 <Group type="103" groupAlignment="3" attributes="0"> 849 <Component id="cadButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 850 <Component id="cctvButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 851 <Component id="chpRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 852 </Group> 853 <EmptySpace max="-2" attributes="0"/> 854 <Group type="103" groupAlignment="3" attributes="0"> 855 <Component id="towButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 856 <Component id="unitButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 857 <Component id="witnessButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 858 </Group> 859 <EmptySpace max="-2" attributes="0"/> 860 <Component id="paramicsButton" min="-2" pref="30" max="-2" attributes="0"/> 877 861 </Group> 878 862 </Group> … … 880 864 </Layout> 881 865 <SubComponents> 882 <Component class="javax.swing.JButton" name="maintenanceRadioButton">883 <Properties>884 <Property name="text" type="java.lang.String" value="Maintenance Radio"/>885 <Property name="toolTipText" type="java.lang.String" value=""/>886 <Property name="focusPainted" type="boolean" value="false"/>887 <Property name="iconTextGap" type="int" value="0"/>888 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">889 <Insets value="[2, 10, 2, 10]"/>890 </Property>891 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">892 <Dimension value="[30, 25]"/>893 </Property>894 </Properties>895 <Events>896 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="maintenanceRadioButtonActionPerformed"/>897 </Events>898 </Component>899 <Component class="javax.swing.JButton" name="tmtRadioButton">900 <Properties>901 <Property name="text" type="java.lang.String" value="TMT Radio"/>902 <Property name="toolTipText" type="java.lang.String" value=""/>903 <Property name="focusPainted" type="boolean" value="false"/>904 <Property name="iconTextGap" type="int" value="0"/>905 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">906 <Insets value="[2, 10, 2, 10]"/>907 </Property>908 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">909 <Dimension value="[30, 25]"/>910 </Property>911 </Properties>912 <Events>913 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="tmtRadioButtonActionPerformed"/>914 </Events>915 </Component>916 <Component class="javax.swing.JButton" name="telephoneButton">917 <Properties>918 <Property name="text" type="java.lang.String" value="Telephone"/>919 <Property name="toolTipText" type="java.lang.String" value=""/>920 <Property name="focusPainted" type="boolean" value="false"/>921 <Property name="iconTextGap" type="int" value="0"/>922 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">923 <Insets value="[2, 10, 2, 10]"/>924 </Property>925 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">926 <Dimension value="[30, 25]"/>927 </Property>928 </Properties>929 <Events>930 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="telephoneButtonActionPerformed"/>931 </Events>932 </Component>933 866 <Component class="javax.swing.JButton" name="unitButton"> 934 867 <Properties> … … 1066 999 <Group type="102" attributes="0"> 1067 1000 <EmptySpace max="-2" attributes="0"/> 1068 <Group type="103" groupAlignment="0" attributes="0">1001 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 1069 1002 <Group type="102" alignment="0" attributes="0"> 1070 1003 <Component id="atmsEvalButton" min="-2" pref="140" max="-2" attributes="0"/> 1071 1004 <EmptySpace max="-2" attributes="0"/> 1072 <Component id="activityLogEvalButton" m in="-2" pref="140" max="-2" attributes="0"/>1005 <Component id="activityLogEvalButton" max="32767" attributes="0"/> 1073 1006 </Group> 1074 1007 <Group type="102" alignment="0" attributes="0"> 1075 1008 <Component id="cmsEvalButton" min="-2" pref="140" max="-2" attributes="0"/> 1076 1009 <EmptySpace max="-2" attributes="0"/> 1077 <Component id="facilitatorEvalButton" min="-2" pref="1 40" max="-2" attributes="0"/>1010 <Component id="facilitatorEvalButton" min="-2" pref="159" max="-2" attributes="0"/> 1078 1011 </Group> 1079 1012 <Group type="102" alignment="0" attributes="0"> 1080 1013 <Component id="cadEvalButton" min="-2" pref="140" max="-2" attributes="0"/> 1081 1014 <EmptySpace max="-2" attributes="0"/> 1082 <Component id="radioEvalButton" m in="-2" pref="140" max="-2" attributes="0"/>1015 <Component id="radioEvalButton" max="32767" attributes="0"/> 1083 1016 </Group> 1084 1017 </Group> … … 1351 1284 </SubComponents> 1352 1285 </Container> 1286 <Container class="javax.swing.JPanel" name="jPanel1"> 1287 <Properties> 1288 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 1289 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 1290 <TitledBorder title="Instructor Actions"/> 1291 </Border> 1292 </Property> 1293 </Properties> 1294 1295 <Layout> 1296 <DimensionLayout dim="0"> 1297 <Group type="103" groupAlignment="0" attributes="0"> 1298 <Group type="102" alignment="1" attributes="0"> 1299 <EmptySpace max="-2" attributes="0"/> 1300 <Group type="103" groupAlignment="1" attributes="0"> 1301 <Component id="maintenanceRadioButton" pref="146" max="32767" attributes="0"/> 1302 <Component id="tmtRadioButton" max="32767" attributes="0"/> 1303 <Component id="telephoneButton" alignment="1" max="32767" attributes="0"/> 1304 </Group> 1305 <EmptySpace max="-2" attributes="0"/> 1306 </Group> 1307 </Group> 1308 </DimensionLayout> 1309 <DimensionLayout dim="1"> 1310 <Group type="103" groupAlignment="0" attributes="0"> 1311 <Group type="102" alignment="0" attributes="0"> 1312 <Component id="telephoneButton" min="-2" pref="30" max="-2" attributes="0"/> 1313 <EmptySpace max="-2" attributes="0"/> 1314 <Component id="tmtRadioButton" min="-2" pref="30" max="-2" attributes="0"/> 1315 <EmptySpace max="32767" attributes="0"/> 1316 <Component id="maintenanceRadioButton" min="-2" pref="30" max="-2" attributes="0"/> 1317 </Group> 1318 </Group> 1319 </DimensionLayout> 1320 </Layout> 1321 <SubComponents> 1322 <Component class="javax.swing.JButton" name="telephoneButton"> 1323 <Properties> 1324 <Property name="text" type="java.lang.String" value="Telephone"/> 1325 <Property name="toolTipText" type="java.lang.String" value=""/> 1326 <Property name="focusPainted" type="boolean" value="false"/> 1327 <Property name="iconTextGap" type="int" value="0"/> 1328 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor"> 1329 <Insets value="[2, 10, 2, 10]"/> 1330 </Property> 1331 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 1332 <Dimension value="[30, 25]"/> 1333 </Property> 1334 </Properties> 1335 <Events> 1336 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="telephoneButtonActionPerformed"/> 1337 </Events> 1338 </Component> 1339 <Component class="javax.swing.JButton" name="tmtRadioButton"> 1340 <Properties> 1341 <Property name="text" type="java.lang.String" value="TMT Radio"/> 1342 <Property name="toolTipText" type="java.lang.String" value=""/> 1343 <Property name="focusPainted" type="boolean" value="false"/> 1344 <Property name="iconTextGap" type="int" value="0"/> 1345 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor"> 1346 <Insets value="[2, 10, 2, 10]"/> 1347 </Property> 1348 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 1349 <Dimension value="[30, 25]"/> 1350 </Property> 1351 </Properties> 1352 <Events> 1353 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="tmtRadioButtonActionPerformed"/> 1354 </Events> 1355 </Component> 1356 <Component class="javax.swing.JButton" name="maintenanceRadioButton"> 1357 <Properties> 1358 <Property name="text" type="java.lang.String" value="Maintenance Radio"/> 1359 <Property name="toolTipText" type="java.lang.String" value=""/> 1360 <Property name="focusPainted" type="boolean" value="false"/> 1361 <Property name="iconTextGap" type="int" value="0"/> 1362 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor"> 1363 <Insets value="[2, 10, 2, 10]"/> 1364 </Property> 1365 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 1366 <Dimension value="[30, 25]"/> 1367 </Property> 1368 </Properties> 1369 <Events> 1370 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="maintenanceRadioButtonActionPerformed"/> 1371 </Events> 1372 </Component> 1373 </SubComponents> 1374 </Container> 1353 1375 </SubComponents> 1354 1376 </Form> -
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r160 r184 482 482 incidentNumber = new javax.swing.JTextField(); 483 483 incidentEventsPanel = new javax.swing.JPanel(); 484 maintenanceRadioButton = new javax.swing.JButton();485 tmtRadioButton = new javax.swing.JButton();486 telephoneButton = new javax.swing.JButton();487 484 unitButton = new javax.swing.JButton(); 488 485 witnessButton = new javax.swing.JButton(); … … 509 506 btnToggleTimeStart = new javax.swing.JRadioButton(); 510 507 btnToggleTimeEnd = new javax.swing.JRadioButton(); 508 jPanel1 = new javax.swing.JPanel(); 509 telephoneButton = new javax.swing.JButton(); 510 tmtRadioButton = new javax.swing.JButton(); 511 maintenanceRadioButton = new javax.swing.JButton(); 511 512 512 513 cadEvent.setText("CAD Event"); … … 929 930 ); 930 931 931 incidentEventsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Incident Events")); 932 933 maintenanceRadioButton.setText("Maintenance Radio"); 934 maintenanceRadioButton.setToolTipText(""); 935 maintenanceRadioButton.setFocusPainted(false); 936 maintenanceRadioButton.setIconTextGap(0); 937 maintenanceRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 938 maintenanceRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 939 maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() { 940 public void actionPerformed(java.awt.event.ActionEvent evt) { 941 maintenanceRadioButtonActionPerformed(evt); 942 } 943 }); 944 945 tmtRadioButton.setText("TMT Radio"); 946 tmtRadioButton.setToolTipText(""); 947 tmtRadioButton.setFocusPainted(false); 948 tmtRadioButton.setIconTextGap(0); 949 tmtRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 950 tmtRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 951 tmtRadioButton.addActionListener(new java.awt.event.ActionListener() { 952 public void actionPerformed(java.awt.event.ActionEvent evt) { 953 tmtRadioButtonActionPerformed(evt); 954 } 955 }); 956 957 telephoneButton.setText("Telephone"); 958 telephoneButton.setToolTipText(""); 959 telephoneButton.setFocusPainted(false); 960 telephoneButton.setIconTextGap(0); 961 telephoneButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 962 telephoneButton.setPreferredSize(new java.awt.Dimension(30, 25)); 963 telephoneButton.addActionListener(new java.awt.event.ActionListener() { 964 public void actionPerformed(java.awt.event.ActionEvent evt) { 965 telephoneButtonActionPerformed(evt); 966 } 967 }); 932 incidentEventsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Automated Events")); 968 933 969 934 unitButton.setText("Unit"); … … 1056 1021 incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1057 1022 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1058 .addContainerGap( )1023 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 1059 1024 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1060 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1061 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, incidentEventsPanelLayout.createSequentialGroup()1062 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1063 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1064 .addComponent(tmtRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1065 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1066 .addComponent(telephoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1067 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1068 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))1069 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1070 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1071 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1072 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1073 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1074 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))1075 1025 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1076 1026 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) … … 1078 1028 .addComponent(cctvButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 1079 1029 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1080 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) 1081 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1030 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) 1031 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1032 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 1033 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1034 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 1035 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1036 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) 1037 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1038 .addGap(126, 126, 126) 1039 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) 1040 .addGap(6, 6, 6)) 1082 1041 ); 1083 1042 incidentEventsPanelLayout.setVerticalGroup( 1084 1043 incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1085 1044 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1086 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1087 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1088 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 1089 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1090 .addComponent(tmtRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1091 .addComponent(telephoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1092 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1093 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 1094 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1095 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1096 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) 1097 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1098 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1099 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) 1100 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 1101 .addComponent(cctvButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1102 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1103 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) 1045 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 1046 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1047 .addComponent(cctvButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1048 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1049 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1050 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 1051 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1052 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1053 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1054 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1055 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1104 1056 ); 1105 1057 … … 1184 1136 .addGroup(evaluationEventsPanelLayout.createSequentialGroup() 1185 1137 .addContainerGap() 1186 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING )1138 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 1187 1139 .addGroup(evaluationEventsPanelLayout.createSequentialGroup() 1188 1140 .addComponent(atmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) 1189 1141 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1190 .addComponent(activityLogEvalButton, javax.swing.GroupLayout. PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))1142 .addComponent(activityLogEvalButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1191 1143 .addGroup(evaluationEventsPanelLayout.createSequentialGroup() 1192 1144 .addComponent(cmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) 1193 1145 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1194 .addComponent(facilitatorEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 1 40, javax.swing.GroupLayout.PREFERRED_SIZE))1146 .addComponent(facilitatorEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)) 1195 1147 .addGroup(evaluationEventsPanelLayout.createSequentialGroup() 1196 1148 .addComponent(cadEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) 1197 1149 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1198 .addComponent(radioEvalButton, javax.swing.GroupLayout. PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))1150 .addComponent(radioEvalButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 1199 1151 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1200 1152 ); … … 1309 1261 ); 1310 1262 1263 jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Instructor Actions")); 1264 1265 telephoneButton.setText("Telephone"); 1266 telephoneButton.setToolTipText(""); 1267 telephoneButton.setFocusPainted(false); 1268 telephoneButton.setIconTextGap(0); 1269 telephoneButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1270 telephoneButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1271 telephoneButton.addActionListener(new java.awt.event.ActionListener() { 1272 public void actionPerformed(java.awt.event.ActionEvent evt) { 1273 telephoneButtonActionPerformed(evt); 1274 } 1275 }); 1276 1277 tmtRadioButton.setText("TMT Radio"); 1278 tmtRadioButton.setToolTipText(""); 1279 tmtRadioButton.setFocusPainted(false); 1280 tmtRadioButton.setIconTextGap(0); 1281 tmtRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1282 tmtRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1283 tmtRadioButton.addActionListener(new java.awt.event.ActionListener() { 1284 public void actionPerformed(java.awt.event.ActionEvent evt) { 1285 tmtRadioButtonActionPerformed(evt); 1286 } 1287 }); 1288 1289 maintenanceRadioButton.setText("Maintenance Radio"); 1290 maintenanceRadioButton.setToolTipText(""); 1291 maintenanceRadioButton.setFocusPainted(false); 1292 maintenanceRadioButton.setIconTextGap(0); 1293 maintenanceRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1294 maintenanceRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1295 maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() { 1296 public void actionPerformed(java.awt.event.ActionEvent evt) { 1297 maintenanceRadioButtonActionPerformed(evt); 1298 } 1299 }); 1300 1301 javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); 1302 jPanel1.setLayout(jPanel1Layout); 1303 jPanel1Layout.setHorizontalGroup( 1304 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1305 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() 1306 .addContainerGap() 1307 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) 1308 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE) 1309 .addComponent(tmtRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 1310 .addComponent(telephoneButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1311 .addContainerGap()) 1312 ); 1313 jPanel1Layout.setVerticalGroup( 1314 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1315 .addGroup(jPanel1Layout.createSequentialGroup() 1316 .addComponent(telephoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1317 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1318 .addComponent(tmtRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1319 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 1320 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1321 ); 1322 1311 1323 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 1312 1324 getContentPane().setLayout(layout); … … 1317 1329 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1318 1330 .addGroup(layout.createSequentialGroup() 1319 .addGap(46, 46, 46)1320 1331 .addComponent(incidentEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1321 1332 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1333 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1334 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1322 1335 .addComponent(evaluationEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1323 .add PreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1336 .addGap(18, 18, 18) 1324 1337 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1325 1338 .addComponent(zoomInIcon) … … 1329 1342 .addComponent(addTimePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 1330 1343 .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE) 1331 .addComponent(timeStampScrollPane , javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)1344 .addComponent(timeStampScrollPane) 1332 1345 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1333 1346 .addComponent(incidentInformationPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 1334 1347 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1335 1348 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1336 .addComponent(timeStampScrollPane1 , javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))1349 .addComponent(timeStampScrollPane1)) 1337 1350 .addContainerGap()) 1338 1351 ); … … 1340 1353 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1341 1354 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1342 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING , false)1355 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1343 1356 .addGroup(layout.createSequentialGroup() 1344 1357 .addContainerGap() 1345 1358 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1346 1359 .addComponent(evaluationEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1347 .addComponent(incidentEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) 1360 .addComponent(incidentEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1361 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) 1348 1362 .addGroup(layout.createSequentialGroup() 1349 1363 .addGap(9, 9, 9) … … 1356 1370 .addComponent(zoomOutIcon)) 1357 1371 .addComponent(addTimePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) 1358 .add PreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1372 .addGap(11, 11, 11) 1359 1373 .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) 1360 1374 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) … … 1787 1801 private javax.swing.JMenuItem jMenuItem5; 1788 1802 private javax.swing.JMenuItem jMenuItem6; 1803 private javax.swing.JPanel jPanel1; 1789 1804 private javax.swing.JLabel labelBackgroundNoise; 1790 1805 private javax.swing.JLabel labelLaneClosures;
Note: See TracChangeset
for help on using the changeset viewer.
