Changeset 52 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
- Timestamp:
- 08/08/2017 06:01:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
