Changeset 52 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder


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).

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

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 
    56 */ 
    67package scriptbuilder.gui; 
     
    4445 * @author Bryan McGuffin 
    4546 */ 
    46 public class ScriptBuilderFrame extends javax.swing.JFrame implements Observer 
     47public class IncidentEditorFrame extends javax.swing.JFrame implements Observer 
    4748{ 
    4849 
     
    246247     * for all buttons. 
    247248     */ 
    248     public ScriptBuilderFrame() 
     249    public IncidentEditorFrame() 
    249250    { 
    250251        script = new SimulationScript(); 
     
    27952796    } 
    27962797 
    2797     /** 
    2798      * Runs the script builder. 
    2799      * 
    2800      * @param args the command line arguments 
    2801      */ 
    2802     public static void main(String args[]) 
    2803     { 
    2804         try 
    2805         { 
    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         try 
    2822         { 
    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//    } 
    28472848    // Variables declaration - do not modify//GEN-BEGIN:variables 
    28482849    private javax.swing.JButton activityLogEvalButton; 
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form

    r51 r52  
    786786              </Events> 
    787787            </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> 
    788796            <MenuItem class="javax.swing.JPopupMenu$Separator" name="jSeparator4"> 
    789797            </MenuItem> 
     
    853861    <Property name="defaultCloseOperation" type="int" value="3"/> 
    854862    <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> 
    855866    <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 
    856867      <Color id="Default Cursor"/> 
    857868    </Property> 
     869    <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 
     870      <Dimension value="[2147483647, 800]"/> 
     871    </Property> 
    858872    <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 
    859       <Dimension value="[800, 800]"/> 
     873      <Dimension value="[800, 700]"/> 
    860874    </Property> 
    861875  </Properties> 
     
    885899                  <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 
    886900                  <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> 
    892901                  <Group type="102" alignment="0" attributes="0"> 
    893902                      <Component id="selectButton" min="-2" pref="40" max="-2" attributes="0"/> 
     
    935944              <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 
    936945              <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"/> 
    944948          </Group> 
    945949      </Group> 
     
    956960          <Dimension value="[72000, 1341]"/> 
    957961        </Property> 
     962        <Property name="wheelScrollingEnabled" type="boolean" value="false"/> 
    958963      </Properties> 
    959964 
     
    10031008                          </Group> 
    10041009                          <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"/> 
    10061011                          <Component id="incidentTimelinePanel2" alignment="0" min="-2" max="-2" attributes="1"/> 
    10071012                          <Component id="incidentTimelinePanel8" alignment="0" min="-2" max="-2" attributes="1"/> 
     
    10691074                          <Component id="incidentTimelinePanel10" alignment="0" min="-2" max="-2" attributes="0"/> 
    10701075                      </Group> 
    1071                       <EmptySpace pref="251" max="32767" attributes="0"/> 
     1076                      <EmptySpace max="32767" attributes="0"/> 
    10721077                  </Group> 
    10731078              </Group> 
     
    10891094                <DimensionLayout dim="0"> 
    10901095                  <Group type="103" groupAlignment="0" attributes="0"> 
    1091                       <EmptySpace min="0" pref="6778" max="32767" attributes="0"/> 
     1096                      <EmptySpace min="0" pref="691" max="32767" attributes="0"/> 
    10921097                  </Group> 
    10931098                </DimensionLayout> 
     
    11071112                <DimensionLayout dim="0"> 
    11081113                  <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"/> 
    11101115                  </Group> 
    11111116                </DimensionLayout> 
    11121117                <DimensionLayout dim="1"> 
    11131118                  <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"/> 
    11151120                  </Group> 
    11161121                </DimensionLayout> 
     
    11251130                <DimensionLayout dim="0"> 
    11261131                  <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"/> 
    11281133                  </Group> 
    11291134                </DimensionLayout> 
    11301135                <DimensionLayout dim="1"> 
    11311136                  <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"/> 
    11331138                  </Group> 
    11341139                </DimensionLayout> 
     
    11431148                <DimensionLayout dim="0"> 
    11441149                  <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"/> 
    11461151                  </Group> 
    11471152                </DimensionLayout> 
    11481153                <DimensionLayout dim="1"> 
    11491154                  <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"/> 
    11511156                  </Group> 
    11521157                </DimensionLayout> 
     
    11611166                <DimensionLayout dim="0"> 
    11621167                  <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"/> 
    11641169                  </Group> 
    11651170                </DimensionLayout> 
    11661171                <DimensionLayout dim="1"> 
    11671172                  <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"/> 
    11691174                  </Group> 
    11701175                </DimensionLayout> 
     
    11841189                <DimensionLayout dim="1"> 
    11851190                  <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"/> 
    11871192                  </Group> 
    11881193                </DimensionLayout> 
     
    11971202                <DimensionLayout dim="0"> 
    11981203                  <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"/> 
    12001205                  </Group> 
    12011206                </DimensionLayout> 
    12021207                <DimensionLayout dim="1"> 
    12031208                  <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"/> 
    12051210                  </Group> 
    12061211                </DimensionLayout> 
     
    12151220                <DimensionLayout dim="0"> 
    12161221                  <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"/> 
    12181223                  </Group> 
    12191224                </DimensionLayout> 
    12201225                <DimensionLayout dim="1"> 
    12211226                  <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"/> 
    12231228                  </Group> 
    12241229                </DimensionLayout> 
     
    12331238                <DimensionLayout dim="0"> 
    12341239                  <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"/> 
    12361241                  </Group> 
    12371242                </DimensionLayout> 
    12381243                <DimensionLayout dim="1"> 
    12391244                  <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"/> 
    12411246                  </Group> 
    12421247                </DimensionLayout> 
     
    12511256                <DimensionLayout dim="0"> 
    12521257                  <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"/> 
    12541259                  </Group> 
    12551260                </DimensionLayout> 
    12561261                <DimensionLayout dim="1"> 
    12571262                  <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"/> 
    12591264                  </Group> 
    12601265                </DimensionLayout> 
     
    12691274                <DimensionLayout dim="0"> 
    12701275                  <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"/> 
    12721277                  </Group> 
    12731278                </DimensionLayout> 
    12741279                <DimensionLayout dim="1"> 
    12751280                  <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"/> 
    12771282                  </Group> 
    12781283                </DimensionLayout> 
     
    12871292                <DimensionLayout dim="0"> 
    12881293                  <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"/> 
    12901295                  </Group> 
    12911296                </DimensionLayout> 
    12921297                <DimensionLayout dim="1"> 
    12931298                  <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"/> 
    12951300                  </Group> 
    12961301                </DimensionLayout> 
     
    13051310                <DimensionLayout dim="0"> 
    13061311                  <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"/> 
    13081313                  </Group> 
    13091314                </DimensionLayout> 
    13101315                <DimensionLayout dim="1"> 
    13111316                  <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"/> 
    13131318                  </Group> 
    13141319                </DimensionLayout> 
     
    13231328                <DimensionLayout dim="0"> 
    13241329                  <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"/> 
    13261331                  </Group> 
    13271332                </DimensionLayout> 
    13281333                <DimensionLayout dim="1"> 
    13291334                  <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"/> 
    13311336                  </Group> 
    13321337                </DimensionLayout> 
     
    13411346                <DimensionLayout dim="0"> 
    13421347                  <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"/> 
    13441349                  </Group> 
    13451350                </DimensionLayout> 
    13461351                <DimensionLayout dim="1"> 
    13471352                  <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"/> 
    13491354                  </Group> 
    13501355                </DimensionLayout> 
     
    13591364                <DimensionLayout dim="0"> 
    13601365                  <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"/> 
    13621367                  </Group> 
    13631368                </DimensionLayout> 
    13641369                <DimensionLayout dim="1"> 
    13651370                  <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"/> 
    13671372                  </Group> 
    13681373                </DimensionLayout> 
     
    13771382                <DimensionLayout dim="0"> 
    13781383                  <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"/> 
    13801385                  </Group> 
    13811386                </DimensionLayout> 
    13821387                <DimensionLayout dim="1"> 
    13831388                  <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"/> 
    13851390                  </Group> 
    13861391                </DimensionLayout> 
     
    13951400                <DimensionLayout dim="0"> 
    13961401                  <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"/> 
    13981403                  </Group> 
    13991404                </DimensionLayout> 
    14001405                <DimensionLayout dim="1"> 
    14011406                  <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"/> 
    14031408                  </Group> 
    14041409                </DimensionLayout> 
     
    14131418                <DimensionLayout dim="0"> 
    14141419                  <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"/> 
    14161421                  </Group> 
    14171422                </DimensionLayout> 
    14181423                <DimensionLayout dim="1"> 
    14191424                  <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"/> 
    14211426                  </Group> 
    14221427                </DimensionLayout> 
     
    14311436                <DimensionLayout dim="0"> 
    14321437                  <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"/> 
    14341439                  </Group> 
    14351440                </DimensionLayout> 
    14361441                <DimensionLayout dim="1"> 
    14371442                  <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"/> 
    14391444                  </Group> 
    14401445                </DimensionLayout> 
    14411446              </Layout> 
    14421447            </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> 
    14961448          </SubComponents> 
    14971449        </Container> 
     
    15131465      </Events> 
    15141466    </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> 
    16211467    <Component class="javax.swing.JButton" name="selectButton"> 
    16221468      <Properties> 
     
    21071953            <DimensionLayout dim="0"> 
    21081954              <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"/> 
    21101956              </Group> 
    21111957            </DimensionLayout> 
    21121958            <DimensionLayout dim="1"> 
    21131959              <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"/> 
    21151961              </Group> 
    21161962            </DimensionLayout> 
  • 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.