Changeset 64 in tmcsimulator for trunk/src/tmcsim/client/cadclientgui/screens/UnitStatus.java
- Timestamp:
- 03/16/2017 07:28:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/cadclientgui/screens/UnitStatus.java
r63 r64 18 18 import java.rmi.RemoteException; 19 19 import java.util.List; 20 import java.util.logging.Level; 21 import java.util.logging.Logger; 20 22 import javax.swing.Box; 21 23 import javax.swing.BoxLayout; … … 48 50 public class UnitStatus extends JFrame 49 51 { 50 private final int ONE_SECOND = 1000; 52 private final static int ONE_SECOND = 1000; 53 private static Logger clientLogger = Logger.getLogger("tmcsim.client"); 51 54 private final String SCREEN_TITLE = "(Shift + F4) Unit Status"; 52 55 private final Dimension SCREEN_DIMENSIONS = new Dimension(1400, 250); … … 152 155 { 153 156 comp = super.prepareRenderer(renderer, row, column); 154 } catch (ArrayIndexOutOfBoundsException ex) 155 { 156 // our workaround is to just return a dummy value 157 // all will be redrawn in the next one second interval 157 } catch (Exception ex) 158 { 159 clientLogger.logp(Level.INFO, "UnitStatus", 160 "prepareRenderer", "row=" + row + " col=" + column, ex); 161 // Our workaround is to just return a dummy value. 162 // It will be erased in the next one second refresh 158 163 return new JLabel("?"); 159 164 }
Note: See TracChangeset
for help on using the changeset viewer.
