Changeset 64 in tmcsimulator for trunk/src/tmcsim/client/ClockView.java


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

Renamed to ClockClient?, added build target for it.

File:
1 moved

Legend:

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

    r62 r64  
    1616 * The CADClientView class is the view component to the CAD Client application. 
    1717 * 
     18 * @author jdalbey 
    1819 */ 
    1920@SuppressWarnings("serial") 
    20 public class CADClockView extends JFrame 
     21public class ClockView extends JFrame 
    2122{ 
    2223    /** 
     
    2627    private JPanel mainPane; 
    2728    private JLabel currentTime; 
     29    private final static Dimension SCREEN_SIZE = new Dimension(1100, 255); 
    2830 
    2931    /** 
    3032     * Constructor. Build panes, add key listeners, and set up observer 
    31      * relationship between the footer and main panes. 
    32      * 
    33      * @param position The CAD position for this client terminal. 
     33     * relationship between the footer and main panes. TODO: Consider having 
     34     * screen size and font size in properties file. 
    3435     */ 
    35     public CADClockView() 
     36    public ClockView() 
    3637    { 
    3738        super("Simulation Clock"); 
     
    4142        currentTime.setFont(new Font("Geneva", Font.BOLD, 200)); 
    4243        mainPane = new JPanel(); 
    43         setSize(new Dimension(1100, 255)); 
    44         setMaximumSize(new Dimension(1100, 255)); 
    45         setMinimumSize(new Dimension(1100, 255)); 
     44        setSize(SCREEN_SIZE); 
     45        setMaximumSize(SCREEN_SIZE); 
     46        setMinimumSize(SCREEN_SIZE); 
    4647        mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.Y_AXIS)); 
    4748        mainPane.setBorder(BorderFactory.createLineBorder(Color.black)); 
Note: See TracChangeset for help on using the changeset viewer.