Changeset 64 in tmcsimulator for trunk/src/tmcsim/client/cadclientgui/screens
- Timestamp:
- 03/16/2017 07:28:12 AM (9 years ago)
- Location:
- trunk/src/tmcsim/client/cadclientgui/screens
- Files:
-
- 2 edited
-
AssignedIncidents.java (modified) (3 diffs)
-
UnitStatus.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/cadclientgui/screens/AssignedIncidents.java
r63 r64 15 15 import java.rmi.RemoteException; 16 16 import java.util.List; 17 import java.util.logging.Level; 18 import java.util.logging.Logger; 17 19 import javax.swing.Box; 18 20 import javax.swing.BoxLayout; … … 62 64 // labels for the drop down menu 63 65 private JLabel[] dropDownLabels = new JLabel[LABELS.length]; 66 private static Logger clientLogger = Logger.getLogger("tmcsim.client"); 64 67 private long lastLeftClick;// used for double clicking feature 65 68 … … 110 113 { 111 114 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 115 } catch (Exception ex) 116 { 117 clientLogger.logp(Level.INFO, "AssignedIncidents", 118 "prepareRenderer", "row=" + row + " col=" + column, ex); 119 120 // Our workaround is to just return a dummy value. 121 // It will be erased in the next one second refresh 116 122 return new JLabel("?"); 117 123 } -
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.
