Changeset 73 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java


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

Updated details in incident editor window allowing editor to more accurately reflect details in the incident.

File:
1 edited

Legend:

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

    r69 r73  
    3535    JPanel panelAdd; 
    3636 
    37     private int incidentCount; 
    38  
    3937    /** 
    4038     * Creates new form IncidentPaletteFrame 
     
    5048        incidentList = new ArrayList<ScriptIncident>(); 
    5149 
    52         incidentCount = 0; 
    53  
    5450        panelAdd.setLayout(new GridLayout(0, 1)); 
    5551 
     
    121117    private void loadPanels(ArrayList<ScriptIncident> incList) 
    122118    { 
    123         incidentCount = 0; 
    124119        scrollAddPanels.setViewport(new JViewport()); 
    125120        panelAdd.removeAll(); 
    126         labelFileCount.setText("Found "+incList.size()+" available incidents."); 
     121        labelFileCount.setText("Found " + incList.size() + " available incidents."); 
    127122        for (ScriptIncident inc : incList) 
    128123        { 
    129             ++incidentCount; 
    130124 
    131125            panelAdd.add(new IncidentPaletteAddPanel(inc, this)); 
Note: See TracChangeset for help on using the changeset viewer.