Changeset 52 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder
- Timestamp:
- 08/08/2017 06:01:51 PM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 2 edited
- 2 copied
-
IncidentEditorFrame.form (copied) (copied from trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form)
-
IncidentEditorFrame.java (copied) (copied from trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java) (4 diffs)
-
ScriptBuilderFrame.form (modified) (29 diffs)
-
ScriptBuilderFrame.java (modified) (39 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r51 r52 1 /* 2 * ScriptBuilderFrame.java 3 * 4 * Created on May 8, 2010, 12:01:46 PM 1 /** 2 * Frame for the Individual Incident Editor. 3 * 4 * @author Bryan McGuffin 5 * @version 2017/08/08 5 6 */ 6 7 package scriptbuilder.gui; … … 44 45 * @author Bryan McGuffin 45 46 */ 46 public class ScriptBuilderFrame extends javax.swing.JFrame implements Observer47 public class IncidentEditorFrame extends javax.swing.JFrame implements Observer 47 48 { 48 49 … … 246 247 * for all buttons. 247 248 */ 248 public ScriptBuilderFrame()249 public IncidentEditorFrame() 249 250 { 250 251 script = new SimulationScript(); … … 2795 2796 } 2796 2797 2797 /**2798 * Runs the script builder.2799 *2800 * @param args the command line arguments2801 */2802 public static void main(String args[])2803 {2804 try2805 {2806 UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");2807 }2808 catch (ClassNotFoundException ex)2809 {2810 }2811 catch (InstantiationException ex)2812 {2813 }2814 catch (IllegalAccessException ex)2815 {2816 }2817 catch (UnsupportedLookAndFeelException ex)2818 {2819 }2820 2821 try2822 {2823 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");2824 }2825 catch (ClassNotFoundException ex)2826 {2827 }2828 catch (InstantiationException ex)2829 {2830 }2831 catch (IllegalAccessException ex)2832 {2833 }2834 catch (UnsupportedLookAndFeelException ex)2835 {2836 }2837 2838 java.awt.EventQueue.invokeLater(2839 new Runnable()2840 {2841 public void run()2842 {2843 new ScriptBuilderFrame().setVisible(true);2844 }2845 });2846 }2798 // /** 2799 // * Runs the script builder. 2800 // * 2801 // * @param args the command line arguments 2802 // */ 2803 // public static void main(String args[]) 2804 // { 2805 // try 2806 // { 2807 // UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); 2808 // } 2809 // catch (ClassNotFoundException ex) 2810 // { 2811 // } 2812 // catch (InstantiationException ex) 2813 // { 2814 // } 2815 // catch (IllegalAccessException ex) 2816 // { 2817 // } 2818 // catch (UnsupportedLookAndFeelException ex) 2819 // { 2820 // } 2821 // 2822 // try 2823 // { 2824 // UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); 2825 // } 2826 // catch (ClassNotFoundException ex) 2827 // { 2828 // } 2829 // catch (InstantiationException ex) 2830 // { 2831 // } 2832 // catch (IllegalAccessException ex) 2833 // { 2834 // } 2835 // catch (UnsupportedLookAndFeelException ex) 2836 // { 2837 // } 2838 // 2839 // java.awt.EventQueue.invokeLater( 2840 // new Runnable() 2841 // { 2842 // public void run() 2843 // { 2844 // new IncidentEditorFrame().setVisible(true); 2845 // } 2846 // }); 2847 // } 2847 2848 // Variables declaration - do not modify//GEN-BEGIN:variables 2848 2849 private javax.swing.JButton activityLogEvalButton; -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form
r51 r52 786 786 </Events> 787 787 </MenuItem> 788 <MenuItem class="javax.swing.JMenuItem" name="incidentDetails"> 789 <Properties> 790 <Property name="text" type="java.lang.String" value="Incident Details..."/> 791 </Properties> 792 <Events> 793 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="incidentDetailsActionPerformed"/> 794 </Events> 795 </MenuItem> 788 796 <MenuItem class="javax.swing.JPopupMenu$Separator" name="jSeparator4"> 789 797 </MenuItem> … … 853 861 <Property name="defaultCloseOperation" type="int" value="3"/> 854 862 <Property name="title" type="java.lang.String" value="Script Builder"/> 863 <Property name="bounds" type="java.awt.Rectangle" editor="org.netbeans.beaninfo.editors.RectangleEditor"> 864 <Rectangle value="[0, 23, 800, 700]"/> 865 </Property> 855 866 <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 856 867 <Color id="Default Cursor"/> 857 868 </Property> 869 <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 870 <Dimension value="[2147483647, 800]"/> 871 </Property> 858 872 <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 859 <Dimension value="[800, 800]"/>873 <Dimension value="[800, 700]"/> 860 874 </Property> 861 875 </Properties> … … 885 899 <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 886 900 <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 887 <Group type="102" alignment="1" attributes="0">888 <Component id="scriptEventsPanel1" max="32767" attributes="0"/>889 <EmptySpace max="-2" attributes="0"/>890 <Component id="scriptEventsPanel" max="32767" attributes="0"/>891 </Group>892 901 <Group type="102" alignment="0" attributes="0"> 893 902 <Component id="selectButton" min="-2" pref="40" max="-2" attributes="0"/> … … 935 944 <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 936 945 <EmptySpace max="-2" attributes="0"/> 937 <Component id="timelinesScrollPane" min="-2" pref="365" max="-2" attributes="0"/> 938 <EmptySpace type="unrelated" max="-2" attributes="0"/> 939 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 940 <Component id="scriptEventsPanel" max="32767" attributes="1"/> 941 <Component id="scriptEventsPanel1" alignment="0" max="32767" attributes="1"/> 942 </Group> 943 <EmptySpace min="-2" max="-2" attributes="0"/> 946 <Component id="timelinesScrollPane" max="32767" attributes="0"/> 947 <EmptySpace max="-2" attributes="0"/> 944 948 </Group> 945 949 </Group> … … 956 960 <Dimension value="[72000, 1341]"/> 957 961 </Property> 962 <Property name="wheelScrollingEnabled" type="boolean" value="false"/> 958 963 </Properties> 959 964 … … 1003 1008 </Group> 1004 1009 <Component id="incidentTimelinePanel3" alignment="0" min="-2" max="-2" attributes="1"/> 1005 <Component id="incidentTimelinePanel1" alignment="0" min="-2" pref="6778"max="-2" attributes="1"/>1010 <Component id="incidentTimelinePanel1" alignment="0" min="-2" max="-2" attributes="1"/> 1006 1011 <Component id="incidentTimelinePanel2" alignment="0" min="-2" max="-2" attributes="1"/> 1007 1012 <Component id="incidentTimelinePanel8" alignment="0" min="-2" max="-2" attributes="1"/> … … 1069 1074 <Component id="incidentTimelinePanel10" alignment="0" min="-2" max="-2" attributes="0"/> 1070 1075 </Group> 1071 <EmptySpace pref="251"max="32767" attributes="0"/>1076 <EmptySpace max="32767" attributes="0"/> 1072 1077 </Group> 1073 1078 </Group> … … 1089 1094 <DimensionLayout dim="0"> 1090 1095 <Group type="103" groupAlignment="0" attributes="0"> 1091 <EmptySpace min="0" pref="6 778" max="32767" attributes="0"/>1096 <EmptySpace min="0" pref="691" max="32767" attributes="0"/> 1092 1097 </Group> 1093 1098 </DimensionLayout> … … 1107 1112 <DimensionLayout dim="0"> 1108 1113 <Group type="103" groupAlignment="0" attributes="0"> 1109 <EmptySpace min="0" pref=" 6726" max="32767" attributes="0"/>1114 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1110 1115 </Group> 1111 1116 </DimensionLayout> 1112 1117 <DimensionLayout dim="1"> 1113 1118 <Group type="103" groupAlignment="0" attributes="0"> 1114 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1119 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1115 1120 </Group> 1116 1121 </DimensionLayout> … … 1125 1130 <DimensionLayout dim="0"> 1126 1131 <Group type="103" groupAlignment="0" attributes="0"> 1127 <EmptySpace min="0" pref=" 5686" max="32767" attributes="0"/>1132 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1128 1133 </Group> 1129 1134 </DimensionLayout> 1130 1135 <DimensionLayout dim="1"> 1131 1136 <Group type="103" groupAlignment="0" attributes="0"> 1132 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1137 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1133 1138 </Group> 1134 1139 </DimensionLayout> … … 1143 1148 <DimensionLayout dim="0"> 1144 1149 <Group type="103" groupAlignment="0" attributes="0"> 1145 <EmptySpace min="0" pref=" 605" max="32767" attributes="0"/>1150 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1146 1151 </Group> 1147 1152 </DimensionLayout> 1148 1153 <DimensionLayout dim="1"> 1149 1154 <Group type="103" groupAlignment="0" attributes="0"> 1150 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1155 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1151 1156 </Group> 1152 1157 </DimensionLayout> … … 1161 1166 <DimensionLayout dim="0"> 1162 1167 <Group type="103" groupAlignment="0" attributes="0"> 1163 <EmptySpace min="0" pref=" 605" max="32767" attributes="0"/>1168 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1164 1169 </Group> 1165 1170 </DimensionLayout> 1166 1171 <DimensionLayout dim="1"> 1167 1172 <Group type="103" groupAlignment="0" attributes="0"> 1168 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1173 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1169 1174 </Group> 1170 1175 </DimensionLayout> … … 1184 1189 <DimensionLayout dim="1"> 1185 1190 <Group type="103" groupAlignment="0" attributes="0"> 1186 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1191 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1187 1192 </Group> 1188 1193 </DimensionLayout> … … 1197 1202 <DimensionLayout dim="0"> 1198 1203 <Group type="103" groupAlignment="0" attributes="0"> 1199 <EmptySpace min="0" pref=" 617" max="32767" attributes="0"/>1204 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1200 1205 </Group> 1201 1206 </DimensionLayout> 1202 1207 <DimensionLayout dim="1"> 1203 1208 <Group type="103" groupAlignment="0" attributes="0"> 1204 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1209 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1205 1210 </Group> 1206 1211 </DimensionLayout> … … 1215 1220 <DimensionLayout dim="0"> 1216 1221 <Group type="103" groupAlignment="0" attributes="0"> 1217 <EmptySpace min="0" pref=" 6882" max="32767" attributes="0"/>1222 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1218 1223 </Group> 1219 1224 </DimensionLayout> 1220 1225 <DimensionLayout dim="1"> 1221 1226 <Group type="103" groupAlignment="0" attributes="0"> 1222 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1227 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1223 1228 </Group> 1224 1229 </DimensionLayout> … … 1233 1238 <DimensionLayout dim="0"> 1234 1239 <Group type="103" groupAlignment="0" attributes="0"> 1235 <EmptySpace min="0" pref=" 6573" max="32767" attributes="0"/>1240 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1236 1241 </Group> 1237 1242 </DimensionLayout> 1238 1243 <DimensionLayout dim="1"> 1239 1244 <Group type="103" groupAlignment="0" attributes="0"> 1240 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1245 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1241 1246 </Group> 1242 1247 </DimensionLayout> … … 1251 1256 <DimensionLayout dim="0"> 1252 1257 <Group type="103" groupAlignment="0" attributes="0"> 1253 <EmptySpace min="0" pref=" 6470" max="32767" attributes="0"/>1258 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1254 1259 </Group> 1255 1260 </DimensionLayout> 1256 1261 <DimensionLayout dim="1"> 1257 1262 <Group type="103" groupAlignment="0" attributes="0"> 1258 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1263 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1259 1264 </Group> 1260 1265 </DimensionLayout> … … 1269 1274 <DimensionLayout dim="0"> 1270 1275 <Group type="103" groupAlignment="0" attributes="0"> 1271 <EmptySpace min="0" pref=" 106" max="32767" attributes="0"/>1276 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1272 1277 </Group> 1273 1278 </DimensionLayout> 1274 1279 <DimensionLayout dim="1"> 1275 1280 <Group type="103" groupAlignment="0" attributes="0"> 1276 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1281 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1277 1282 </Group> 1278 1283 </DimensionLayout> … … 1287 1292 <DimensionLayout dim="0"> 1288 1293 <Group type="103" groupAlignment="0" attributes="0"> 1289 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1294 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1290 1295 </Group> 1291 1296 </DimensionLayout> 1292 1297 <DimensionLayout dim="1"> 1293 1298 <Group type="103" groupAlignment="0" attributes="0"> 1294 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1299 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1295 1300 </Group> 1296 1301 </DimensionLayout> … … 1305 1310 <DimensionLayout dim="0"> 1306 1311 <Group type="103" groupAlignment="0" attributes="0"> 1307 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1312 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1308 1313 </Group> 1309 1314 </DimensionLayout> 1310 1315 <DimensionLayout dim="1"> 1311 1316 <Group type="103" groupAlignment="0" attributes="0"> 1312 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1317 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1313 1318 </Group> 1314 1319 </DimensionLayout> … … 1323 1328 <DimensionLayout dim="0"> 1324 1329 <Group type="103" groupAlignment="0" attributes="0"> 1325 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1330 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1326 1331 </Group> 1327 1332 </DimensionLayout> 1328 1333 <DimensionLayout dim="1"> 1329 1334 <Group type="103" groupAlignment="0" attributes="0"> 1330 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1335 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1331 1336 </Group> 1332 1337 </DimensionLayout> … … 1341 1346 <DimensionLayout dim="0"> 1342 1347 <Group type="103" groupAlignment="0" attributes="0"> 1343 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1348 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1344 1349 </Group> 1345 1350 </DimensionLayout> 1346 1351 <DimensionLayout dim="1"> 1347 1352 <Group type="103" groupAlignment="0" attributes="0"> 1348 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1353 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1349 1354 </Group> 1350 1355 </DimensionLayout> … … 1359 1364 <DimensionLayout dim="0"> 1360 1365 <Group type="103" groupAlignment="0" attributes="0"> 1361 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1366 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1362 1367 </Group> 1363 1368 </DimensionLayout> 1364 1369 <DimensionLayout dim="1"> 1365 1370 <Group type="103" groupAlignment="0" attributes="0"> 1366 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1371 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1367 1372 </Group> 1368 1373 </DimensionLayout> … … 1377 1382 <DimensionLayout dim="0"> 1378 1383 <Group type="103" groupAlignment="0" attributes="0"> 1379 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1384 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1380 1385 </Group> 1381 1386 </DimensionLayout> 1382 1387 <DimensionLayout dim="1"> 1383 1388 <Group type="103" groupAlignment="0" attributes="0"> 1384 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1389 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1385 1390 </Group> 1386 1391 </DimensionLayout> … … 1395 1400 <DimensionLayout dim="0"> 1396 1401 <Group type="103" groupAlignment="0" attributes="0"> 1397 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1402 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1398 1403 </Group> 1399 1404 </DimensionLayout> 1400 1405 <DimensionLayout dim="1"> 1401 1406 <Group type="103" groupAlignment="0" attributes="0"> 1402 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1407 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1403 1408 </Group> 1404 1409 </DimensionLayout> … … 1413 1418 <DimensionLayout dim="0"> 1414 1419 <Group type="103" groupAlignment="0" attributes="0"> 1415 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1420 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1416 1421 </Group> 1417 1422 </DimensionLayout> 1418 1423 <DimensionLayout dim="1"> 1419 1424 <Group type="103" groupAlignment="0" attributes="0"> 1420 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1425 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1421 1426 </Group> 1422 1427 </DimensionLayout> … … 1431 1436 <DimensionLayout dim="0"> 1432 1437 <Group type="103" groupAlignment="0" attributes="0"> 1433 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1438 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1434 1439 </Group> 1435 1440 </DimensionLayout> 1436 1441 <DimensionLayout dim="1"> 1437 1442 <Group type="103" groupAlignment="0" attributes="0"> 1438 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1443 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 1439 1444 </Group> 1440 1445 </DimensionLayout> 1441 1446 </Layout> 1442 1447 </Container> 1443 </SubComponents>1444 </Container>1445 </SubComponents>1446 </Container>1447 <Container class="javax.swing.JPanel" name="scriptEventsPanel">1448 <Properties>1449 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">1450 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">1451 <TitledBorder title="Script Events"/>1452 </Border>1453 </Property>1454 </Properties>1455 1456 <Layout>1457 <DimensionLayout dim="0">1458 <Group type="103" groupAlignment="0" attributes="0">1459 <Group type="102" alignment="0" attributes="0">1460 <EmptySpace max="-2" attributes="0"/>1461 <Component id="scriptEventsPane" max="32767" attributes="0"/>1462 <EmptySpace max="-2" attributes="0"/>1463 </Group>1464 </Group>1465 </DimensionLayout>1466 <DimensionLayout dim="1">1467 <Group type="103" groupAlignment="0" attributes="0">1468 <Group type="102" alignment="0" attributes="0">1469 <Component id="scriptEventsPane" pref="197" max="32767" attributes="0"/>1470 <EmptySpace max="-2" attributes="0"/>1471 </Group>1472 </Group>1473 </DimensionLayout>1474 </Layout>1475 <SubComponents>1476 <Container class="javax.swing.JScrollPane" name="scriptEventsPane">1477 <Properties>1478 <Property name="verticalScrollBarPolicy" type="int" value="22"/>1479 </Properties>1480 <AuxValues>1481 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>1482 </AuxValues>1483 1484 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>1485 <SubComponents>1486 <Component class="javax.swing.JList" name="scriptEventsList">1487 <Properties>1488 <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">1489 <Connection code="new DefaultListModel()" type="code"/>1490 </Property>1491 <Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor">1492 <ComponentRef name="eventListPopupMenu"/>1493 </Property>1494 </Properties>1495 </Component>1496 1448 </SubComponents> 1497 1449 </Container> … … 1513 1465 </Events> 1514 1466 </Component> 1515 <Container class="javax.swing.JPanel" name="scriptEventsPanel1">1516 <Properties>1517 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">1518 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">1519 <TitledBorder title="Incident Information"/>1520 </Border>1521 </Property>1522 </Properties>1523 1524 <Layout>1525 <DimensionLayout dim="0">1526 <Group type="103" groupAlignment="0" attributes="0">1527 <Group type="102" alignment="0" attributes="0">1528 <EmptySpace max="-2" attributes="0"/>1529 <Group type="103" groupAlignment="0" attributes="0">1530 <Component id="incidentDescriptionPane" alignment="1" max="32767" attributes="0"/>1531 <Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/>1532 <Group type="102" alignment="0" attributes="0">1533 <Group type="103" groupAlignment="0" attributes="0">1534 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>1535 <Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/>1536 </Group>1537 <EmptySpace max="-2" attributes="0"/>1538 <Group type="103" groupAlignment="1" attributes="0">1539 <Component id="incidentName" max="32767" attributes="0"/>1540 <Component id="incidentNumber" alignment="1" max="32767" attributes="0"/>1541 </Group>1542 </Group>1543 </Group>1544 <EmptySpace max="-2" attributes="0"/>1545 </Group>1546 </Group>1547 </DimensionLayout>1548 <DimensionLayout dim="1">1549 <Group type="103" groupAlignment="0" attributes="0">1550 <Group type="102" alignment="0" attributes="0">1551 <Group type="103" groupAlignment="3" attributes="0">1552 <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>1553 <Component id="incidentNumber" alignment="3" min="-2" max="-2" attributes="0"/>1554 </Group>1555 <EmptySpace max="-2" attributes="0"/>1556 <Group type="103" groupAlignment="3" attributes="0">1557 <Component id="incidentName" alignment="3" min="-2" max="-2" attributes="0"/>1558 <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>1559 </Group>1560 <EmptySpace max="-2" attributes="0"/>1561 <Component id="jLabel4" min="-2" max="-2" attributes="0"/>1562 <EmptySpace max="-2" attributes="0"/>1563 <Component id="incidentDescriptionPane" pref="125" max="32767" attributes="0"/>1564 <EmptySpace min="-2" max="-2" attributes="0"/>1565 </Group>1566 </Group>1567 </DimensionLayout>1568 </Layout>1569 <SubComponents>1570 <Component class="javax.swing.JLabel" name="jLabel2">1571 <Properties>1572 <Property name="text" type="java.lang.String" value="Incident Number:"/>1573 </Properties>1574 </Component>1575 <Component class="javax.swing.JLabel" name="jLabel3">1576 <Properties>1577 <Property name="text" type="java.lang.String" value="Incident Name:"/>1578 </Properties>1579 </Component>1580 <Component class="javax.swing.JLabel" name="jLabel4">1581 <Properties>1582 <Property name="text" type="java.lang.String" value="Incident Description:"/>1583 </Properties>1584 </Component>1585 <Component class="javax.swing.JTextField" name="incidentName">1586 <Properties>1587 <Property name="editable" type="boolean" value="false"/>1588 <Property name="text" type="java.lang.String" value="Media"/>1589 </Properties>1590 </Component>1591 <Container class="javax.swing.JScrollPane" name="incidentDescriptionPane">1592 <Properties>1593 <Property name="verticalScrollBarPolicy" type="int" value="22"/>1594 </Properties>1595 <AuxValues>1596 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>1597 </AuxValues>1598 1599 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>1600 <SubComponents>1601 <Component class="javax.swing.JTextArea" name="incidentDescription">1602 <Properties>1603 <Property name="columns" type="int" value="20"/>1604 <Property name="editable" type="boolean" value="false"/>1605 <Property name="lineWrap" type="boolean" value="true"/>1606 <Property name="rows" type="int" value="5"/>1607 <Property name="text" type="java.lang.String" value="All media message events are found in this incident."/>1608 <Property name="wrapStyleWord" type="boolean" value="true"/>1609 </Properties>1610 </Component>1611 </SubComponents>1612 </Container>1613 <Component class="javax.swing.JTextField" name="incidentNumber">1614 <Properties>1615 <Property name="editable" type="boolean" value="false"/>1616 <Property name="text" type="java.lang.String" value="100"/>1617 </Properties>1618 </Component>1619 </SubComponents>1620 </Container>1621 1467 <Component class="javax.swing.JButton" name="selectButton"> 1622 1468 <Properties> … … 2107 1953 <DimensionLayout dim="0"> 2108 1954 <Group type="103" groupAlignment="0" attributes="0"> 2109 <EmptySpace min="0" pref=" 1032" max="32767" attributes="0"/>1955 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 2110 1956 </Group> 2111 1957 </DimensionLayout> 2112 1958 <DimensionLayout dim="1"> 2113 1959 <Group type="103" groupAlignment="0" attributes="0"> 2114 <EmptySpace min="0" pref=" 100" max="32767" attributes="0"/>1960 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 2115 1961 </Group> 2116 1962 </DimensionLayout> -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r51 r52 365 365 model.addElement(e); 366 366 } 367 scriptEventsList.setModel(model);368 367 } 369 368 else if (arg instanceof IncidentFocusedEvent) … … 371 370 ScriptIncident i = ((IncidentFocusedEvent) arg).incident; 372 371 373 incidentNumber.setText(Integer.toString(i.number));374 incidentName.setText(i.name);375 incidentDescription.setText(i.description);376 372 377 373 //gotoIncident.setSelectedItem(i); … … 467 463 incidentNumberPanel9 = new scriptbuilder.gui.panels.IncidentNumberPanel(); 468 464 incidentNumberPanel10 = new scriptbuilder.gui.panels.IncidentNumberPanel(); 469 scriptEventsPanel = new javax.swing.JPanel();470 scriptEventsPane = new javax.swing.JScrollPane();471 scriptEventsList = new javax.swing.JList();472 465 zoomSlider = new javax.swing.JSlider(); 473 scriptEventsPanel1 = new javax.swing.JPanel();474 jLabel2 = new javax.swing.JLabel();475 jLabel3 = new javax.swing.JLabel();476 jLabel4 = new javax.swing.JLabel();477 incidentName = new javax.swing.JTextField();478 incidentDescriptionPane = new javax.swing.JScrollPane();479 incidentDescription = new javax.swing.JTextArea();480 incidentNumber = new javax.swing.JTextField();481 466 selectButton = new javax.swing.JButton(); 482 467 incidentEventsPanel = new javax.swing.JPanel(); … … 521 506 newIncident = new javax.swing.JMenuItem(); 522 507 editIncident = new javax.swing.JMenuItem(); 508 incidentDetails = new javax.swing.JMenuItem(); 523 509 jSeparator4 = new javax.swing.JPopupMenu.Separator(); 524 510 saveIncident = new javax.swing.JMenuItem(); … … 932 918 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 933 919 setTitle("Script Builder"); 920 setBounds(new java.awt.Rectangle(0, 23, 800, 700)); 934 921 setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); 935 setMinimumSize(new java.awt.Dimension(800, 800)); 922 setMaximumSize(new java.awt.Dimension(2147483647, 800)); 923 setMinimumSize(new java.awt.Dimension(800, 700)); 936 924 937 925 timelinesScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); … … 940 928 timelinesScrollPane.setFocusTraversalPolicyProvider(true); 941 929 timelinesScrollPane.setPreferredSize(new java.awt.Dimension(72000, 1341)); 930 timelinesScrollPane.setWheelScrollingEnabled(false); 942 931 943 932 timelineTickPanel.setMaximumSize(new java.awt.Dimension(7200, 32767)); … … 953 942 incidentTimelinePanel1Layout.setHorizontalGroup( 954 943 incidentTimelinePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 955 .addGap(0, 6 778, Short.MAX_VALUE)944 .addGap(0, 691, Short.MAX_VALUE) 956 945 ); 957 946 incidentTimelinePanel1Layout.setVerticalGroup( … … 966 955 incidentTimelinePanel2Layout.setHorizontalGroup( 967 956 incidentTimelinePanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 968 .addGap(0, 6726, Short.MAX_VALUE)957 .addGap(0, 0, Short.MAX_VALUE) 969 958 ); 970 959 incidentTimelinePanel2Layout.setVerticalGroup( 971 960 incidentTimelinePanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 972 .addGap(0, 100, Short.MAX_VALUE)961 .addGap(0, 0, Short.MAX_VALUE) 973 962 ); 974 963 … … 979 968 incidentTimelinePanel8Layout.setHorizontalGroup( 980 969 incidentTimelinePanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 981 .addGap(0, 5686, Short.MAX_VALUE)970 .addGap(0, 0, Short.MAX_VALUE) 982 971 ); 983 972 incidentTimelinePanel8Layout.setVerticalGroup( 984 973 incidentTimelinePanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 985 .addGap(0, 100, Short.MAX_VALUE)974 .addGap(0, 0, Short.MAX_VALUE) 986 975 ); 987 976 … … 992 981 incidentTimelinePanel3Layout.setHorizontalGroup( 993 982 incidentTimelinePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 994 .addGap(0, 605, Short.MAX_VALUE)983 .addGap(0, 0, Short.MAX_VALUE) 995 984 ); 996 985 incidentTimelinePanel3Layout.setVerticalGroup( 997 986 incidentTimelinePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 998 .addGap(0, 100, Short.MAX_VALUE)987 .addGap(0, 0, Short.MAX_VALUE) 999 988 ); 1000 989 … … 1005 994 incidentTimelinePanel6Layout.setHorizontalGroup( 1006 995 incidentTimelinePanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1007 .addGap(0, 605, Short.MAX_VALUE)996 .addGap(0, 0, Short.MAX_VALUE) 1008 997 ); 1009 998 incidentTimelinePanel6Layout.setVerticalGroup( 1010 999 incidentTimelinePanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1011 .addGap(0, 100, Short.MAX_VALUE)1000 .addGap(0, 0, Short.MAX_VALUE) 1012 1001 ); 1013 1002 … … 1022 1011 incidentTimelinePanel5Layout.setVerticalGroup( 1023 1012 incidentTimelinePanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1024 .addGap(0, 100, Short.MAX_VALUE)1013 .addGap(0, 0, Short.MAX_VALUE) 1025 1014 ); 1026 1015 … … 1031 1020 incidentTimelinePanel4Layout.setHorizontalGroup( 1032 1021 incidentTimelinePanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1033 .addGap(0, 617, Short.MAX_VALUE)1022 .addGap(0, 0, Short.MAX_VALUE) 1034 1023 ); 1035 1024 incidentTimelinePanel4Layout.setVerticalGroup( 1036 1025 incidentTimelinePanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1037 .addGap(0, 100, Short.MAX_VALUE)1026 .addGap(0, 0, Short.MAX_VALUE) 1038 1027 ); 1039 1028 … … 1044 1033 incidentTimelinePanel7Layout.setHorizontalGroup( 1045 1034 incidentTimelinePanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1046 .addGap(0, 6882, Short.MAX_VALUE)1035 .addGap(0, 0, Short.MAX_VALUE) 1047 1036 ); 1048 1037 incidentTimelinePanel7Layout.setVerticalGroup( 1049 1038 incidentTimelinePanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1050 .addGap(0, 100, Short.MAX_VALUE)1039 .addGap(0, 0, Short.MAX_VALUE) 1051 1040 ); 1052 1041 … … 1057 1046 incidentTimelinePanel10Layout.setHorizontalGroup( 1058 1047 incidentTimelinePanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1059 .addGap(0, 6573, Short.MAX_VALUE)1048 .addGap(0, 0, Short.MAX_VALUE) 1060 1049 ); 1061 1050 incidentTimelinePanel10Layout.setVerticalGroup( 1062 1051 incidentTimelinePanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1063 .addGap(0, 100, Short.MAX_VALUE)1052 .addGap(0, 0, Short.MAX_VALUE) 1064 1053 ); 1065 1054 … … 1070 1059 incidentTimelinePanel9Layout.setHorizontalGroup( 1071 1060 incidentTimelinePanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1072 .addGap(0, 6470, Short.MAX_VALUE)1061 .addGap(0, 0, Short.MAX_VALUE) 1073 1062 ); 1074 1063 incidentTimelinePanel9Layout.setVerticalGroup( 1075 1064 incidentTimelinePanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1076 .addGap(0, 100, Short.MAX_VALUE)1065 .addGap(0, 0, Short.MAX_VALUE) 1077 1066 ); 1078 1067 … … 1083 1072 incidentNumberPanel1Layout.setHorizontalGroup( 1084 1073 incidentNumberPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1085 .addGap(0, 106, Short.MAX_VALUE)1074 .addGap(0, 0, Short.MAX_VALUE) 1086 1075 ); 1087 1076 incidentNumberPanel1Layout.setVerticalGroup( 1088 1077 incidentNumberPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1089 .addGap(0, 100, Short.MAX_VALUE)1078 .addGap(0, 0, Short.MAX_VALUE) 1090 1079 ); 1091 1080 … … 1096 1085 incidentNumberPanel2Layout.setHorizontalGroup( 1097 1086 incidentNumberPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1098 .addGap(0, 100, Short.MAX_VALUE)1087 .addGap(0, 0, Short.MAX_VALUE) 1099 1088 ); 1100 1089 incidentNumberPanel2Layout.setVerticalGroup( 1101 1090 incidentNumberPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1102 .addGap(0, 100, Short.MAX_VALUE)1091 .addGap(0, 0, Short.MAX_VALUE) 1103 1092 ); 1104 1093 … … 1109 1098 incidentNumberPanel3Layout.setHorizontalGroup( 1110 1099 incidentNumberPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1111 .addGap(0, 100, Short.MAX_VALUE)1100 .addGap(0, 0, Short.MAX_VALUE) 1112 1101 ); 1113 1102 incidentNumberPanel3Layout.setVerticalGroup( 1114 1103 incidentNumberPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1115 .addGap(0, 100, Short.MAX_VALUE)1104 .addGap(0, 0, Short.MAX_VALUE) 1116 1105 ); 1117 1106 … … 1122 1111 incidentNumberPanel4Layout.setHorizontalGroup( 1123 1112 incidentNumberPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1124 .addGap(0, 100, Short.MAX_VALUE)1113 .addGap(0, 0, Short.MAX_VALUE) 1125 1114 ); 1126 1115 incidentNumberPanel4Layout.setVerticalGroup( 1127 1116 incidentNumberPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1128 .addGap(0, 100, Short.MAX_VALUE)1117 .addGap(0, 0, Short.MAX_VALUE) 1129 1118 ); 1130 1119 … … 1135 1124 incidentNumberPanel5Layout.setHorizontalGroup( 1136 1125 incidentNumberPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1137 .addGap(0, 100, Short.MAX_VALUE)1126 .addGap(0, 0, Short.MAX_VALUE) 1138 1127 ); 1139 1128 incidentNumberPanel5Layout.setVerticalGroup( 1140 1129 incidentNumberPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1141 .addGap(0, 100, Short.MAX_VALUE)1130 .addGap(0, 0, Short.MAX_VALUE) 1142 1131 ); 1143 1132 … … 1148 1137 incidentNumberPanel6Layout.setHorizontalGroup( 1149 1138 incidentNumberPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1150 .addGap(0, 100, Short.MAX_VALUE)1139 .addGap(0, 0, Short.MAX_VALUE) 1151 1140 ); 1152 1141 incidentNumberPanel6Layout.setVerticalGroup( 1153 1142 incidentNumberPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1154 .addGap(0, 100, Short.MAX_VALUE)1143 .addGap(0, 0, Short.MAX_VALUE) 1155 1144 ); 1156 1145 … … 1161 1150 incidentNumberPanel7Layout.setHorizontalGroup( 1162 1151 incidentNumberPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1163 .addGap(0, 100, Short.MAX_VALUE)1152 .addGap(0, 0, Short.MAX_VALUE) 1164 1153 ); 1165 1154 incidentNumberPanel7Layout.setVerticalGroup( 1166 1155 incidentNumberPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1167 .addGap(0, 100, Short.MAX_VALUE)1156 .addGap(0, 0, Short.MAX_VALUE) 1168 1157 ); 1169 1158 … … 1174 1163 incidentNumberPanel8Layout.setHorizontalGroup( 1175 1164 incidentNumberPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1176 .addGap(0, 100, Short.MAX_VALUE)1165 .addGap(0, 0, Short.MAX_VALUE) 1177 1166 ); 1178 1167 incidentNumberPanel8Layout.setVerticalGroup( 1179 1168 incidentNumberPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1180 .addGap(0, 100, Short.MAX_VALUE)1169 .addGap(0, 0, Short.MAX_VALUE) 1181 1170 ); 1182 1171 … … 1187 1176 incidentNumberPanel9Layout.setHorizontalGroup( 1188 1177 incidentNumberPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1189 .addGap(0, 100, Short.MAX_VALUE)1178 .addGap(0, 0, Short.MAX_VALUE) 1190 1179 ); 1191 1180 incidentNumberPanel9Layout.setVerticalGroup( 1192 1181 incidentNumberPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1193 .addGap(0, 100, Short.MAX_VALUE)1182 .addGap(0, 0, Short.MAX_VALUE) 1194 1183 ); 1195 1184 … … 1200 1189 incidentNumberPanel10Layout.setHorizontalGroup( 1201 1190 incidentNumberPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1202 .addGap(0, 100, Short.MAX_VALUE)1191 .addGap(0, 0, Short.MAX_VALUE) 1203 1192 ); 1204 1193 incidentNumberPanel10Layout.setVerticalGroup( 1205 1194 incidentNumberPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1206 .addGap(0, 100, Short.MAX_VALUE)1195 .addGap(0, 0, Short.MAX_VALUE) 1207 1196 ); 1208 1197 … … 1234 1223 .addComponent(incidentTimelinePanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 1235 1224 .addComponent(incidentTimelinePanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1236 .addComponent(incidentTimelinePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 6778, javax.swing.GroupLayout.PREFERRED_SIZE)1225 .addComponent(incidentTimelinePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1237 1226 .addComponent(incidentTimelinePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1238 1227 .addComponent(incidentTimelinePanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) … … 1288 1277 .addComponent(incidentNumberPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1289 1278 .addComponent(incidentTimelinePanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 1290 .addContainerGap( 251, Short.MAX_VALUE))1279 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1291 1280 ); 1292 1281 1293 1282 timelinesScrollPane.setViewportView(timelineTickPanel); 1294 1295 scriptEventsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Script Events"));1296 1297 scriptEventsPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);1298 1299 scriptEventsList.setModel(new DefaultListModel());1300 scriptEventsList.setComponentPopupMenu(eventListPopupMenu);1301 scriptEventsPane.setViewportView(scriptEventsList);1302 1303 javax.swing.GroupLayout scriptEventsPanelLayout = new javax.swing.GroupLayout(scriptEventsPanel);1304 scriptEventsPanel.setLayout(scriptEventsPanelLayout);1305 scriptEventsPanelLayout.setHorizontalGroup(1306 scriptEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1307 .addGroup(scriptEventsPanelLayout.createSequentialGroup()1308 .addContainerGap()1309 .addComponent(scriptEventsPane)1310 .addContainerGap())1311 );1312 scriptEventsPanelLayout.setVerticalGroup(1313 scriptEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1314 .addGroup(scriptEventsPanelLayout.createSequentialGroup()1315 .addComponent(scriptEventsPane, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)1316 .addContainerGap())1317 );1318 1283 1319 1284 zoomSlider.setMaximum(21); … … 1330 1295 } 1331 1296 }); 1332 1333 scriptEventsPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Incident Information"));1334 1335 jLabel2.setText("Incident Number:");1336 1337 jLabel3.setText("Incident Name:");1338 1339 jLabel4.setText("Incident Description:");1340 1341 incidentName.setEditable(false);1342 incidentName.setText("Media");1343 1344 incidentDescriptionPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);1345 1346 incidentDescription.setColumns(20);1347 incidentDescription.setEditable(false);1348 incidentDescription.setLineWrap(true);1349 incidentDescription.setRows(5);1350 incidentDescription.setText("All media message events are found in this incident.");1351 incidentDescription.setWrapStyleWord(true);1352 incidentDescriptionPane.setViewportView(incidentDescription);1353 1354 incidentNumber.setEditable(false);1355 incidentNumber.setText("100");1356 1357 javax.swing.GroupLayout scriptEventsPanel1Layout = new javax.swing.GroupLayout(scriptEventsPanel1);1358 scriptEventsPanel1.setLayout(scriptEventsPanel1Layout);1359 scriptEventsPanel1Layout.setHorizontalGroup(1360 scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1361 .addGroup(scriptEventsPanel1Layout.createSequentialGroup()1362 .addContainerGap()1363 .addGroup(scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1364 .addComponent(incidentDescriptionPane, javax.swing.GroupLayout.Alignment.TRAILING)1365 .addComponent(jLabel4)1366 .addGroup(scriptEventsPanel1Layout.createSequentialGroup()1367 .addGroup(scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1368 .addComponent(jLabel2)1369 .addComponent(jLabel3))1370 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1371 .addGroup(scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)1372 .addComponent(incidentName)1373 .addComponent(incidentNumber))))1374 .addContainerGap())1375 );1376 scriptEventsPanel1Layout.setVerticalGroup(1377 scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1378 .addGroup(scriptEventsPanel1Layout.createSequentialGroup()1379 .addGroup(scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1380 .addComponent(jLabel2)1381 .addComponent(incidentNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))1382 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1383 .addGroup(scriptEventsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1384 .addComponent(incidentName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)1385 .addComponent(jLabel3))1386 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1387 .addComponent(jLabel4)1388 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1389 .addComponent(incidentDescriptionPane, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)1390 .addContainerGap())1391 );1392 1297 1393 1298 selectButton.setToolTipText("Select"); … … 1767 1672 timeStampPanelLayout.setHorizontalGroup( 1768 1673 timeStampPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1769 .addGap(0, 1032, Short.MAX_VALUE)1674 .addGap(0, 0, Short.MAX_VALUE) 1770 1675 ); 1771 1676 timeStampPanelLayout.setVerticalGroup( 1772 1677 timeStampPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1773 .addGap(0, 100, Short.MAX_VALUE)1678 .addGap(0, 0, Short.MAX_VALUE) 1774 1679 ); 1775 1680 … … 1910 1815 }); 1911 1816 incidentMenu.add(editIncident); 1817 1818 incidentDetails.setText("Incident Details..."); 1819 incidentDetails.addActionListener(new java.awt.event.ActionListener() 1820 { 1821 public void actionPerformed(java.awt.event.ActionEvent evt) 1822 { 1823 incidentDetailsActionPerformed(evt); 1824 } 1825 }); 1826 incidentMenu.add(incidentDetails); 1912 1827 incidentMenu.add(jSeparator4); 1913 1828 … … 1978 1893 .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE) 1979 1894 .addComponent(timeStampScrollPane) 1980 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()1981 .addComponent(scriptEventsPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)1982 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1983 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))1984 1895 .addGroup(layout.createSequentialGroup() 1985 1896 .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) … … 2017 1928 .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) 2018 1929 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 2019 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 365, javax.swing.GroupLayout.PREFERRED_SIZE) 2020 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 2021 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 2022 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 2023 .addComponent(scriptEventsPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1930 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 2024 1931 .addContainerGap()) 2025 1932 ); … … 2307 2214 * @param evt the button press event 2308 2215 */ 2309 private void editIncidentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editIncidentActionPerformed2216 private void incidentDetailsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_incidentDetailsActionPerformed 2310 2217 Object[] incidentList = script.incidents.toArray(); 2311 2218 ScriptIncident i = (ScriptIncident) JOptionPane.showInputDialog( … … 2334 2241 incidentFrame.setVisible(true); 2335 2242 } 2336 }//GEN-LAST:event_ editIncidentActionPerformed2243 }//GEN-LAST:event_incidentDetailsActionPerformed 2337 2244 2338 2245 /** … … 2760 2667 repaint(); 2761 2668 }//GEN-LAST:event_fileNewActionPerformed 2669 2670 private void editIncidentActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_editIncidentActionPerformed 2671 {//GEN-HEADEREND:event_editIncidentActionPerformed 2672 new IncidentEditorFrame().setVisible(true); 2673 }//GEN-LAST:event_editIncidentActionPerformed 2762 2674 2763 2675 /** … … 2888 2800 private javax.swing.JColorChooser incidentColorChooser; 2889 2801 private javax.swing.JTextField incidentColorField; 2890 private javax.swing.JTextArea incidentDescription; 2891 private javax.swing.JScrollPane incidentDescriptionPane; 2802 private javax.swing.JMenuItem incidentDetails; 2892 2803 private javax.swing.JPanel incidentEventsPanel; 2893 2804 private javax.swing.JFrame incidentFrame; 2894 2805 private javax.swing.JMenu incidentMenu; 2895 private javax.swing.JTextField incidentName;2896 private javax.swing.JTextField incidentNumber;2897 2806 private scriptbuilder.gui.panels.IncidentNumberPanel incidentNumberPanel1; 2898 2807 private scriptbuilder.gui.panels.IncidentNumberPanel incidentNumberPanel10; … … 2928 2837 private javax.swing.JLabel jLabel16; 2929 2838 private javax.swing.JLabel jLabel17; 2930 private javax.swing.JLabel jLabel2;2931 2839 private javax.swing.JLabel jLabel20; 2932 2840 private javax.swing.JLabel jLabel21; 2933 private javax.swing.JLabel jLabel3;2934 private javax.swing.JLabel jLabel4;2935 2841 private javax.swing.JLabel jLabel5; 2936 2842 private javax.swing.JLabel jLabel6; … … 2969 2875 private javax.swing.JMenuItem saveIncident; 2970 2876 private javax.swing.JMenuBar scriptBuilderMenuBar; 2971 private javax.swing.JList scriptEventsList;2972 private javax.swing.JScrollPane scriptEventsPane;2973 private javax.swing.JPanel scriptEventsPanel;2974 private javax.swing.JPanel scriptEventsPanel1;2975 2877 private javax.swing.JButton selectButton; 2976 2878 private javax.swing.JButton telephoneButton;
Note: See TracChangeset
for help on using the changeset viewer.
