Changeset 475 in tmcsimulator for trunk/src/tmcsim/client/cadclientgui/data
- Timestamp:
- 08/23/2019 01:49:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/cadclientgui/data/CADData.java
r310 r475 231 231 232 232 /** 233 * Sends all the objects for UnitStatus233 * Accessor to the Unit Status table model 234 234 * 235 235 * @return DefaultTableModel for UnitStatus 236 236 */ 237 synchronized 237 238 public DefaultTableModel tableForUnitStatus() 238 239 { 239 toUnitTableVector.clear(); 240 for (int i = 0; i < units.size(); i++) 241 { 242 toUnitTableVector.add(units.get(i).toVector()); 240 Vector<Object> toUnitTableVector = new Vector<Object>(); 241 242 // build a new unit table 243 for (Unit unit: units) 244 { 245 toUnitTableVector.add(unit.toVector()); 243 246 } 244 247 // Exception occurred here: http://pastebin.com/fvifM5i8 248 // Probably a distributed object concurrency problem. 249 // Assign the unit status table from the newly created vector 245 250 unitStatusTableModel 246 251 .setDataVector(toUnitTableVector, unitStatusHeaders); 252 // return a reference to the updated table 247 253 return unitStatusTableModel; 248 254 } 249 250 255 /** 251 256 * Sends all the objects for AssignedIncidents
Note: See TracChangeset
for help on using the changeset viewer.
