Changeset 64 in tmcsimulator for trunk/src/tmcsim/client/ClockView.java
- Timestamp:
- 03/16/2017 07:28:12 AM (9 years ago)
- File:
-
- 1 moved
-
trunk/src/tmcsim/client/ClockView.java (moved) (moved from trunk/src/tmcsim/client/CADClockView.java) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/ClockView.java
r62 r64 16 16 * The CADClientView class is the view component to the CAD Client application. 17 17 * 18 * @author jdalbey 18 19 */ 19 20 @SuppressWarnings("serial") 20 public class C ADClockView extends JFrame21 public class ClockView extends JFrame 21 22 { 22 23 /** … … 26 27 private JPanel mainPane; 27 28 private JLabel currentTime; 29 private final static Dimension SCREEN_SIZE = new Dimension(1100, 255); 28 30 29 31 /** 30 32 * 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. 34 35 */ 35 public C ADClockView()36 public ClockView() 36 37 { 37 38 super("Simulation Clock"); … … 41 42 currentTime.setFont(new Font("Geneva", Font.BOLD, 200)); 42 43 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); 46 47 mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.Y_AXIS)); 47 48 mainPane.setBorder(BorderFactory.createLineBorder(Color.black));
Note: See TracChangeset
for help on using the changeset viewer.
