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


Ignore:
Timestamp:
09/19/2017 02:41:52 PM (9 years ago)
Author:
bmcguffin
Message:

Fixed a bug in saveIncidentActionPerformed() which caused a null pointer exception if the user didn't select an incident to save.

Changed the color of the absolute-time TimeStamp? panel to a more neutral color.

Added "Script:" and "Incident:" labels at the beginning of the absolute-time and relative-time TimeStamp? panels, respectively.

File:
1 edited

Legend:

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

    r117 r123  
    15441544            script.numberOfIncidents++; 
    15451545            IncidentEditorFrame editor = new IncidentEditorFrame(script.incidents.get(indx), this); 
    1546              
     1546 
    15471547            editor.setVisible(true); 
    15481548        } 
     
    16161616 
    16171617        addIncidentName.setText(""); 
    1618          
     1618 
    16191619        int newLogNum = 100; 
    16201620        boolean found = false; 
     
    16331633                } 
    16341634            } 
    1635         }  
    1636          
     1635        } 
     1636 
    16371637        addIncidentNumber.setValue(newLogNum); 
    16381638        addIncidentStart.setValue(0); 
     
    18371837                incidentList, 
    18381838                script.incidents.get(0)); 
     1839        if (result == null) 
     1840        { 
     1841            return; 
     1842        } 
    18391843        input = result.toString(); 
    18401844        int i = 0; 
Note: See TracChangeset for help on using the changeset viewer.