Changeset 64 in tmcsimulator for trunk/src/tmcsim/client/cadclientgui/screens


Ignore:
Timestamp:
03/16/2017 07:28:12 AM (9 years ago)
Author:
jdalbey
Message:

Renamed to ClockClient?, added build target for it.

Location:
trunk/src/tmcsim/client/cadclientgui/screens
Files:
2 edited

Legend:

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

    r63 r64  
    1515import java.rmi.RemoteException; 
    1616import java.util.List; 
     17import java.util.logging.Level; 
     18import java.util.logging.Logger; 
    1719import javax.swing.Box; 
    1820import javax.swing.BoxLayout; 
     
    6264    // labels for the drop down menu 
    6365    private JLabel[] dropDownLabels = new JLabel[LABELS.length]; 
     66    private static Logger clientLogger = Logger.getLogger("tmcsim.client"); 
    6467    private long lastLeftClick;// used for double clicking feature 
    6568 
     
    110113                { 
    111114                    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 
    116122                    return new JLabel("?"); 
    117123                } 
  • trunk/src/tmcsim/client/cadclientgui/screens/UnitStatus.java

    r63 r64  
    1818import java.rmi.RemoteException; 
    1919import java.util.List; 
     20import java.util.logging.Level; 
     21import java.util.logging.Logger; 
    2022import javax.swing.Box; 
    2123import javax.swing.BoxLayout; 
     
    4850public class UnitStatus extends JFrame 
    4951{ 
    50     private final int ONE_SECOND = 1000; 
     52    private final static int ONE_SECOND = 1000; 
     53    private static Logger clientLogger = Logger.getLogger("tmcsim.client"); 
    5154    private final String SCREEN_TITLE = "(Shift + F4)  Unit Status"; 
    5255    private final Dimension SCREEN_DIMENSIONS = new Dimension(1400, 250); 
     
    152155                { 
    153156                    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 
    158163                    return new JLabel("?"); 
    159164                } 
Note: See TracChangeset for help on using the changeset viewer.