Changeset 52 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentEditorFrame.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 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; 
Note: See TracChangeset for help on using the changeset viewer.