Changeset 52 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java


Ignore:
Timestamp:
08/08/2017 06:01:51 PM (9 years ago)
Author:
bmcguffin
Message:

Duplicated main ScriptBuilder? window. The new window will become the Incident Editor window (see Storyboard 2a-B). The main ScriptBuilder? window will become the Incident Combiner window (see storyboard 1a-B).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java

    r51 r52  
    365365                model.addElement(e); 
    366366            } 
    367             scriptEventsList.setModel(model); 
    368367        } 
    369368        else if (arg instanceof IncidentFocusedEvent) 
     
    371370            ScriptIncident i = ((IncidentFocusedEvent) arg).incident; 
    372371 
    373             incidentNumber.setText(Integer.toString(i.number)); 
    374             incidentName.setText(i.name); 
    375             incidentDescription.setText(i.description); 
    376372 
    377373            //gotoIncident.setSelectedItem(i); 
     
    467463        incidentNumberPanel9 = new scriptbuilder.gui.panels.IncidentNumberPanel(); 
    468464        incidentNumberPanel10 = new scriptbuilder.gui.panels.IncidentNumberPanel(); 
    469         scriptEventsPanel = new javax.swing.JPanel(); 
    470         scriptEventsPane = new javax.swing.JScrollPane(); 
    471         scriptEventsList = new javax.swing.JList(); 
    472465        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(); 
    481466        selectButton = new javax.swing.JButton(); 
    482467        incidentEventsPanel = new javax.swing.JPanel(); 
     
    521506        newIncident = new javax.swing.JMenuItem(); 
    522507        editIncident = new javax.swing.JMenuItem(); 
     508        incidentDetails = new javax.swing.JMenuItem(); 
    523509        jSeparator4 = new javax.swing.JPopupMenu.Separator(); 
    524510        saveIncident = new javax.swing.JMenuItem(); 
     
    932918        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 
    933919        setTitle("Script Builder"); 
     920        setBounds(new java.awt.Rectangle(0, 23, 800, 700)); 
    934921        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)); 
    936924 
    937925        timelinesScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); 
     
    940928        timelinesScrollPane.setFocusTraversalPolicyProvider(true); 
    941929        timelinesScrollPane.setPreferredSize(new java.awt.Dimension(72000, 1341)); 
     930        timelinesScrollPane.setWheelScrollingEnabled(false); 
    942931 
    943932        timelineTickPanel.setMaximumSize(new java.awt.Dimension(7200, 32767)); 
     
    953942        incidentTimelinePanel1Layout.setHorizontalGroup( 
    954943            incidentTimelinePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    955             .addGap(0, 6778, Short.MAX_VALUE) 
     944            .addGap(0, 691, Short.MAX_VALUE) 
    956945        ); 
    957946        incidentTimelinePanel1Layout.setVerticalGroup( 
     
    966955        incidentTimelinePanel2Layout.setHorizontalGroup( 
    967956            incidentTimelinePanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    968             .addGap(0, 6726, Short.MAX_VALUE) 
     957            .addGap(0, 0, Short.MAX_VALUE) 
    969958        ); 
    970959        incidentTimelinePanel2Layout.setVerticalGroup( 
    971960            incidentTimelinePanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    972             .addGap(0, 100, Short.MAX_VALUE) 
     961            .addGap(0, 0, Short.MAX_VALUE) 
    973962        ); 
    974963 
     
    979968        incidentTimelinePanel8Layout.setHorizontalGroup( 
    980969            incidentTimelinePanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    981             .addGap(0, 5686, Short.MAX_VALUE) 
     970            .addGap(0, 0, Short.MAX_VALUE) 
    982971        ); 
    983972        incidentTimelinePanel8Layout.setVerticalGroup( 
    984973            incidentTimelinePanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    985             .addGap(0, 100, Short.MAX_VALUE) 
     974            .addGap(0, 0, Short.MAX_VALUE) 
    986975        ); 
    987976 
     
    992981        incidentTimelinePanel3Layout.setHorizontalGroup( 
    993982            incidentTimelinePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    994             .addGap(0, 605, Short.MAX_VALUE) 
     983            .addGap(0, 0, Short.MAX_VALUE) 
    995984        ); 
    996985        incidentTimelinePanel3Layout.setVerticalGroup( 
    997986            incidentTimelinePanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    998             .addGap(0, 100, Short.MAX_VALUE) 
     987            .addGap(0, 0, Short.MAX_VALUE) 
    999988        ); 
    1000989 
     
    1005994        incidentTimelinePanel6Layout.setHorizontalGroup( 
    1006995            incidentTimelinePanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1007             .addGap(0, 605, Short.MAX_VALUE) 
     996            .addGap(0, 0, Short.MAX_VALUE) 
    1008997        ); 
    1009998        incidentTimelinePanel6Layout.setVerticalGroup( 
    1010999            incidentTimelinePanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1011             .addGap(0, 100, Short.MAX_VALUE) 
     1000            .addGap(0, 0, Short.MAX_VALUE) 
    10121001        ); 
    10131002 
     
    10221011        incidentTimelinePanel5Layout.setVerticalGroup( 
    10231012            incidentTimelinePanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1024             .addGap(0, 100, Short.MAX_VALUE) 
     1013            .addGap(0, 0, Short.MAX_VALUE) 
    10251014        ); 
    10261015 
     
    10311020        incidentTimelinePanel4Layout.setHorizontalGroup( 
    10321021            incidentTimelinePanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1033             .addGap(0, 617, Short.MAX_VALUE) 
     1022            .addGap(0, 0, Short.MAX_VALUE) 
    10341023        ); 
    10351024        incidentTimelinePanel4Layout.setVerticalGroup( 
    10361025            incidentTimelinePanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1037             .addGap(0, 100, Short.MAX_VALUE) 
     1026            .addGap(0, 0, Short.MAX_VALUE) 
    10381027        ); 
    10391028 
     
    10441033        incidentTimelinePanel7Layout.setHorizontalGroup( 
    10451034            incidentTimelinePanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1046             .addGap(0, 6882, Short.MAX_VALUE) 
     1035            .addGap(0, 0, Short.MAX_VALUE) 
    10471036        ); 
    10481037        incidentTimelinePanel7Layout.setVerticalGroup( 
    10491038            incidentTimelinePanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1050             .addGap(0, 100, Short.MAX_VALUE) 
     1039            .addGap(0, 0, Short.MAX_VALUE) 
    10511040        ); 
    10521041 
     
    10571046        incidentTimelinePanel10Layout.setHorizontalGroup( 
    10581047            incidentTimelinePanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1059             .addGap(0, 6573, Short.MAX_VALUE) 
     1048            .addGap(0, 0, Short.MAX_VALUE) 
    10601049        ); 
    10611050        incidentTimelinePanel10Layout.setVerticalGroup( 
    10621051            incidentTimelinePanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1063             .addGap(0, 100, Short.MAX_VALUE) 
     1052            .addGap(0, 0, Short.MAX_VALUE) 
    10641053        ); 
    10651054 
     
    10701059        incidentTimelinePanel9Layout.setHorizontalGroup( 
    10711060            incidentTimelinePanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1072             .addGap(0, 6470, Short.MAX_VALUE) 
     1061            .addGap(0, 0, Short.MAX_VALUE) 
    10731062        ); 
    10741063        incidentTimelinePanel9Layout.setVerticalGroup( 
    10751064            incidentTimelinePanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1076             .addGap(0, 100, Short.MAX_VALUE) 
     1065            .addGap(0, 0, Short.MAX_VALUE) 
    10771066        ); 
    10781067 
     
    10831072        incidentNumberPanel1Layout.setHorizontalGroup( 
    10841073            incidentNumberPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1085             .addGap(0, 106, Short.MAX_VALUE) 
     1074            .addGap(0, 0, Short.MAX_VALUE) 
    10861075        ); 
    10871076        incidentNumberPanel1Layout.setVerticalGroup( 
    10881077            incidentNumberPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1089             .addGap(0, 100, Short.MAX_VALUE) 
     1078            .addGap(0, 0, Short.MAX_VALUE) 
    10901079        ); 
    10911080 
     
    10961085        incidentNumberPanel2Layout.setHorizontalGroup( 
    10971086            incidentNumberPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1098             .addGap(0, 100, Short.MAX_VALUE) 
     1087            .addGap(0, 0, Short.MAX_VALUE) 
    10991088        ); 
    11001089        incidentNumberPanel2Layout.setVerticalGroup( 
    11011090            incidentNumberPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1102             .addGap(0, 100, Short.MAX_VALUE) 
     1091            .addGap(0, 0, Short.MAX_VALUE) 
    11031092        ); 
    11041093 
     
    11091098        incidentNumberPanel3Layout.setHorizontalGroup( 
    11101099            incidentNumberPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1111             .addGap(0, 100, Short.MAX_VALUE) 
     1100            .addGap(0, 0, Short.MAX_VALUE) 
    11121101        ); 
    11131102        incidentNumberPanel3Layout.setVerticalGroup( 
    11141103            incidentNumberPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1115             .addGap(0, 100, Short.MAX_VALUE) 
     1104            .addGap(0, 0, Short.MAX_VALUE) 
    11161105        ); 
    11171106 
     
    11221111        incidentNumberPanel4Layout.setHorizontalGroup( 
    11231112            incidentNumberPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1124             .addGap(0, 100, Short.MAX_VALUE) 
     1113            .addGap(0, 0, Short.MAX_VALUE) 
    11251114        ); 
    11261115        incidentNumberPanel4Layout.setVerticalGroup( 
    11271116            incidentNumberPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1128             .addGap(0, 100, Short.MAX_VALUE) 
     1117            .addGap(0, 0, Short.MAX_VALUE) 
    11291118        ); 
    11301119 
     
    11351124        incidentNumberPanel5Layout.setHorizontalGroup( 
    11361125            incidentNumberPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1137             .addGap(0, 100, Short.MAX_VALUE) 
     1126            .addGap(0, 0, Short.MAX_VALUE) 
    11381127        ); 
    11391128        incidentNumberPanel5Layout.setVerticalGroup( 
    11401129            incidentNumberPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1141             .addGap(0, 100, Short.MAX_VALUE) 
     1130            .addGap(0, 0, Short.MAX_VALUE) 
    11421131        ); 
    11431132 
     
    11481137        incidentNumberPanel6Layout.setHorizontalGroup( 
    11491138            incidentNumberPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1150             .addGap(0, 100, Short.MAX_VALUE) 
     1139            .addGap(0, 0, Short.MAX_VALUE) 
    11511140        ); 
    11521141        incidentNumberPanel6Layout.setVerticalGroup( 
    11531142            incidentNumberPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1154             .addGap(0, 100, Short.MAX_VALUE) 
     1143            .addGap(0, 0, Short.MAX_VALUE) 
    11551144        ); 
    11561145 
     
    11611150        incidentNumberPanel7Layout.setHorizontalGroup( 
    11621151            incidentNumberPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1163             .addGap(0, 100, Short.MAX_VALUE) 
     1152            .addGap(0, 0, Short.MAX_VALUE) 
    11641153        ); 
    11651154        incidentNumberPanel7Layout.setVerticalGroup( 
    11661155            incidentNumberPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1167             .addGap(0, 100, Short.MAX_VALUE) 
     1156            .addGap(0, 0, Short.MAX_VALUE) 
    11681157        ); 
    11691158 
     
    11741163        incidentNumberPanel8Layout.setHorizontalGroup( 
    11751164            incidentNumberPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1176             .addGap(0, 100, Short.MAX_VALUE) 
     1165            .addGap(0, 0, Short.MAX_VALUE) 
    11771166        ); 
    11781167        incidentNumberPanel8Layout.setVerticalGroup( 
    11791168            incidentNumberPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1180             .addGap(0, 100, Short.MAX_VALUE) 
     1169            .addGap(0, 0, Short.MAX_VALUE) 
    11811170        ); 
    11821171 
     
    11871176        incidentNumberPanel9Layout.setHorizontalGroup( 
    11881177            incidentNumberPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1189             .addGap(0, 100, Short.MAX_VALUE) 
     1178            .addGap(0, 0, Short.MAX_VALUE) 
    11901179        ); 
    11911180        incidentNumberPanel9Layout.setVerticalGroup( 
    11921181            incidentNumberPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1193             .addGap(0, 100, Short.MAX_VALUE) 
     1182            .addGap(0, 0, Short.MAX_VALUE) 
    11941183        ); 
    11951184 
     
    12001189        incidentNumberPanel10Layout.setHorizontalGroup( 
    12011190            incidentNumberPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1202             .addGap(0, 100, Short.MAX_VALUE) 
     1191            .addGap(0, 0, Short.MAX_VALUE) 
    12031192        ); 
    12041193        incidentNumberPanel10Layout.setVerticalGroup( 
    12051194            incidentNumberPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1206             .addGap(0, 100, Short.MAX_VALUE) 
     1195            .addGap(0, 0, Short.MAX_VALUE) 
    12071196        ); 
    12081197 
     
    12341223                        .addComponent(incidentTimelinePanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 
    12351224                    .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) 
    12371226                    .addComponent(incidentTimelinePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 
    12381227                    .addComponent(incidentTimelinePanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 
     
    12881277                    .addComponent(incidentNumberPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 
    12891278                    .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)) 
    12911280        ); 
    12921281 
    12931282        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         ); 
    13181283 
    13191284        zoomSlider.setMaximum(21); 
     
    13301295            } 
    13311296        }); 
    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         ); 
    13921297 
    13931298        selectButton.setToolTipText("Select"); 
     
    17671672        timeStampPanelLayout.setHorizontalGroup( 
    17681673            timeStampPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1769             .addGap(0, 1032, Short.MAX_VALUE) 
     1674            .addGap(0, 0, Short.MAX_VALUE) 
    17701675        ); 
    17711676        timeStampPanelLayout.setVerticalGroup( 
    17721677            timeStampPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    1773             .addGap(0, 100, Short.MAX_VALUE) 
     1678            .addGap(0, 0, Short.MAX_VALUE) 
    17741679        ); 
    17751680 
     
    19101815        }); 
    19111816        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); 
    19121827        incidentMenu.add(jSeparator4); 
    19131828 
     
    19781893                    .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE) 
    19791894                    .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)) 
    19841895                    .addGroup(layout.createSequentialGroup() 
    19851896                        .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) 
     
    20171928                .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) 
    20181929                .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) 
    20241931                .addContainerGap()) 
    20251932        ); 
     
    23072214     * @param evt the button press event 
    23082215     */ 
    2309     private void editIncidentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editIncidentActionPerformed 
     2216    private void incidentDetailsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_incidentDetailsActionPerformed 
    23102217        Object[] incidentList = script.incidents.toArray(); 
    23112218        ScriptIncident i = (ScriptIncident) JOptionPane.showInputDialog( 
     
    23342241            incidentFrame.setVisible(true); 
    23352242        } 
    2336     }//GEN-LAST:event_editIncidentActionPerformed 
     2243    }//GEN-LAST:event_incidentDetailsActionPerformed 
    23372244 
    23382245    /** 
     
    27602667        repaint(); 
    27612668    }//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 
    27622674 
    27632675    /** 
     
    28882800    private javax.swing.JColorChooser incidentColorChooser; 
    28892801    private javax.swing.JTextField incidentColorField; 
    2890     private javax.swing.JTextArea incidentDescription; 
    2891     private javax.swing.JScrollPane incidentDescriptionPane; 
     2802    private javax.swing.JMenuItem incidentDetails; 
    28922803    private javax.swing.JPanel incidentEventsPanel; 
    28932804    private javax.swing.JFrame incidentFrame; 
    28942805    private javax.swing.JMenu incidentMenu; 
    2895     private javax.swing.JTextField incidentName; 
    2896     private javax.swing.JTextField incidentNumber; 
    28972806    private scriptbuilder.gui.panels.IncidentNumberPanel incidentNumberPanel1; 
    28982807    private scriptbuilder.gui.panels.IncidentNumberPanel incidentNumberPanel10; 
     
    29282837    private javax.swing.JLabel jLabel16; 
    29292838    private javax.swing.JLabel jLabel17; 
    2930     private javax.swing.JLabel jLabel2; 
    29312839    private javax.swing.JLabel jLabel20; 
    29322840    private javax.swing.JLabel jLabel21; 
    2933     private javax.swing.JLabel jLabel3; 
    2934     private javax.swing.JLabel jLabel4; 
    29352841    private javax.swing.JLabel jLabel5; 
    29362842    private javax.swing.JLabel jLabel6; 
     
    29692875    private javax.swing.JMenuItem saveIncident; 
    29702876    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; 
    29752877    private javax.swing.JButton selectButton; 
    29762878    private javax.swing.JButton telephoneButton; 
Note: See TracChangeset for help on using the changeset viewer.