Ignore:
Timestamp:
08/23/2019 01:49:50 PM (7 years ago)
Author:
jdalbey
Message:

Coordinator.java, AssignedIncidents?.java, UnitStatus?.java, CADMenu.java: Add comments and error messages. Add revision number to CAD Menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/client/cadclientgui/screens/UnitStatus.java

    r458 r475  
    165165                } 
    166166 
     167                // Set the cell colors depending on the unit's status 
    167168                int unitNumColumn = 2; 
    168169                try 
    169170                { 
    170                     switch (ScreenManager.theCoordinator 
    171                             .getCadDataUnitStatus((String) unitStatusTable 
    172                             .getValueAt(row, unitNumColumn))) 
     171                    String unitNum = (String) unitStatusTable.getValueAt(row, unitNumColumn); 
     172                     
     173                    UnitStatusEnums status = ScreenManager.theCoordinator 
     174                            .getCadDataUnitStatus(unitNum); 
     175                    switch (status) 
    173176                    { 
    174177                        case Assignable: 
     
    10881091                    unitStatusTable.getSelectionModel().setSelectionInterval(index, index); 
    10891092                }}); 
    1090  
     1093            // Perhaps these aren't needed since changing the model should cause auto repaint. 
    10911094            revalidate(); 
    10921095            repaint(); 
Note: See TracChangeset for help on using the changeset viewer.