Changeset 62 in tmcsimulator for trunk/src/tmcsim/client/CADClockView.java
- Timestamp:
- 03/15/2017 02:53:35 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/tmcsim/client/CADClockView.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/CADClockView.java
r61 r62 4 4 import java.awt.Dimension; 5 5 import 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;10 6 import java.util.logging.Logger; 11 12 7 import javax.swing.BorderFactory; 13 8 import javax.swing.Box; … … 15 10 import javax.swing.JFrame; 16 11 import javax.swing.JLabel; 17 import javax.swing.JOptionPane;18 12 import javax.swing.JPanel; 19 13 import javax.swing.WindowConstants; 20 import tmcsim.common.ObserverMessage;21 import tmcsim.common.CADEnums.CADScreenNum;22 import tmcsim.cadsimulator.viewer.model.CADSimulatorStatus;23 14 24 15 /** 25 16 * The CADClientView class is the view component to the CAD Client application. 26 17 * 27 * This view class observers the CADClientModel, listening for updates from the28 * CAD Simulator. Updates includes the current CAD time29 18 */ 30 19 @SuppressWarnings("serial") 31 20 public class CADClockView extends JFrame 32 21 { 33 34 22 /** 35 23 * Error Logger. … … 47 35 public CADClockView() 48 36 { 49 super(" CAD Client");37 super("Simulation Clock"); 50 38 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"); 55 40 currentTime.setAlignmentX(Box.CENTER_ALIGNMENT); 56 currentTime.setFont(new Font("Geneva", Font.BOLD, 70));41 currentTime.setFont(new Font("Geneva", Font.BOLD, 200)); 57 42 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)); 61 46 mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.Y_AXIS)); 62 47 mainPane.setBorder(BorderFactory.createLineBorder(Color.black)); 63 mainPane.setBackground( Color.LIGHT_GRAY);48 mainPane.setBackground(new Color(230, 230, 230)); // #E6E6E6 64 49 mainPane.add(currentTime); 65 50 add(mainPane);
Note: See TracChangeset
for help on using the changeset viewer.
