Changeset 62 in tmcsimulator for trunk/src/tmcsim/client/CADClockView.java


Ignore:
Timestamp:
03/15/2017 02:53:35 PM (9 years ago)
Author:
jdalbey
Message:

Clock Client version 1 done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/client/CADClockView.java

    r61 r62  
    44import java.awt.Dimension; 
    55import java.awt.Font; 
    6 import java.awt.event.KeyEvent; 
    7 import java.awt.event.KeyListener; 
    8 import java.util.Observable; 
    9 import java.util.Observer; 
    106import java.util.logging.Logger; 
    11  
    127import javax.swing.BorderFactory; 
    138import javax.swing.Box; 
     
    1510import javax.swing.JFrame; 
    1611import javax.swing.JLabel; 
    17 import javax.swing.JOptionPane; 
    1812import javax.swing.JPanel; 
    1913import javax.swing.WindowConstants; 
    20 import tmcsim.common.ObserverMessage; 
    21 import tmcsim.common.CADEnums.CADScreenNum; 
    22 import tmcsim.cadsimulator.viewer.model.CADSimulatorStatus; 
    2314 
    2415/** 
    2516 * The CADClientView class is the view component to the CAD Client application. 
    2617 * 
    27  * This view class observers the CADClientModel, listening for updates from the 
    28  * CAD Simulator. Updates includes the current CAD time 
    2918 */ 
    3019@SuppressWarnings("serial") 
    3120public class CADClockView extends JFrame 
    3221{ 
    33  
    3422    /** 
    3523     * Error Logger. 
     
    4735    public CADClockView() 
    4836    { 
    49         super("CAD Client"); 
     37        super("Simulation Clock"); 
    5038        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); 
    51         currentTime = new JLabel("0:00:00"); 
    52         CADSimulatorStatus status = new CADSimulatorStatus(); 
    53         String simtime = status.getCurrentTime(); 
    54         currentTime.setText(simtime); 
     39        currentTime = new JLabel("00:00:00"); 
    5540        currentTime.setAlignmentX(Box.CENTER_ALIGNMENT); 
    56         currentTime.setFont(new Font("Geneva", Font.BOLD, 70)); 
     41        currentTime.setFont(new Font("Geneva", Font.BOLD, 200)); 
    5742        mainPane = new JPanel(); 
    58         setSize(new Dimension(730, 455)); 
    59         setMaximumSize(new Dimension(730, 455)); 
    60         setMinimumSize(new Dimension(730, 455)); 
     43        setSize(new Dimension(1100, 255)); 
     44        setMaximumSize(new Dimension(1100, 255)); 
     45        setMinimumSize(new Dimension(1100, 255)); 
    6146        mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.Y_AXIS)); 
    6247        mainPane.setBorder(BorderFactory.createLineBorder(Color.black)); 
    63         mainPane.setBackground(Color.LIGHT_GRAY); 
     48        mainPane.setBackground(new Color(230, 230, 230));  // #E6E6E6 
    6449        mainPane.add(currentTime); 
    6550        add(mainPane); 
Note: See TracChangeset for help on using the changeset viewer.