Changeset 63 in tmcsimulator for trunk/src/tmcsim/client/cadclientgui/screens/AssignedIncidents.java
- Timestamp:
- 03/15/2017 08:00:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/cadclientgui/screens/AssignedIncidents.java
r59 r63 104 104 public Component prepareRenderer(TableCellRenderer renderer, int row, int column) 105 105 { 106 Component comp = super.prepareRenderer(renderer, row, column); 106 Component comp; 107 // In a rare odd circumstance of timing, this exception is thrown: 108 // http://pastebin.com/A3tZe07a 109 try 110 { 111 comp = super.prepareRenderer(renderer, row, column); 112 } catch (ArrayIndexOutOfBoundsException ex) 113 { 114 // our workaround is to just return a dummy value 115 // all will be redrawn in the next one second interval 116 return new JLabel("?"); 117 } 107 118 108 119 comp.setForeground(Color.BLACK); … … 121 132 { 122 133 // Fetch the unit's current status from server 123 UnitStatusEnums ustatus = ScreenManager.theCoordinator.getCadDataUnitStatus(unitname);134 UnitStatusEnums ustatus = ScreenManager.theCoordinator.getCadDataUnitStatus(unitname); 124 135 // Decide which color to use for displaying the status 125 136 switch (ustatus)
Note: See TracChangeset
for help on using the changeset viewer.
