Changeset 532 in tmcsimulator for trunk/src/tmcsim/client/CADClient.java
- Timestamp:
- 11/27/2019 07:56:32 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/tmcsim/client/CADClient.java (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/CADClient.java
r525 r532 9 9 import java.awt.event.WindowEvent; 10 10 import java.awt.event.WindowListener; 11 import java.awt.image.BufferedImage; 12 import java.io.File; 11 13 import java.io.FileInputStream; 12 14 import java.io.FileOutputStream; … … 19 21 import java.util.logging.Level; 20 22 import java.util.logging.Logger; 23 import javax.imageio.ImageIO; 24 import javax.swing.ImageIcon; 21 25 import javax.swing.JDialog; 22 26 … … 88 92 "CADRmiPort"), CLIENT_CAD_POS("CADPosition"), CLIENT_USER_ID( 89 93 "CADUserID"), KEYBOARD_TYPE("KeyboardType"), DISPLAY_TYPE( 90 "DisplayType") ;94 "DisplayType"), STUDENT_NAMES_FILE("StudentNamesFile"); 91 95 92 96 public String name; … … 182 186 // This ensures they all have access to each other and the data model 183 187 theClientGUI.screen = new ScreenManager(theCoorInt); 184 theClientGUI.login = new Login( );188 theClientGUI.login = new Login(cadClientProp.getProperty(PROPERTIES.STUDENT_NAMES_FILE.name).trim()); 185 189 theClientGUI.client = this; 186 190 … … 345 349 // CAD Simulator's connection information. 346 350 if (cadClientProp.getProperty(PROPERTIES.CAD_SIM_HOST.name) == null 347 || cadClientProp.getProperty(PROPERTIES.CAD_SIM_PORT.name) == null) { 351 || cadClientProp.getProperty(PROPERTIES.CAD_SIM_PORT.name) == null 352 || cadClientProp.getProperty(PROPERTIES.STUDENT_NAMES_FILE.name) == null) { 348 353 cadClientLogger.logp(Level.SEVERE, "SimulationManager", 349 354 "Constructor", "Null value in properties file."); … … 522 527 private JDialog createSplashScreen() 523 528 { 524 final int dialogSize = 300; // desired width and height of dialog529 final int dialogSize = 268; // desired width and height of dialog 525 530 // create the dialog 526 531 JDialog dlg = new JDialog(null,"VisiCAD loading",Dialog.ModalityType.MODELESS); … … 534 539 // Add the msg to the center of the dialog 535 540 dlg.add(dlgMsg,BorderLayout.CENTER); 541 // Add TriTech banner to top of screen 542 try { 543 BufferedImage myPicture = ImageIO.read(new File("images/CADMenuImages/Tritech.png")); 544 JLabel picLabel = new JLabel(new ImageIcon(myPicture)); 545 dlg.add(picLabel, BorderLayout.NORTH); 546 } catch (IOException ex) { 547 Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex); 548 } 536 549 // Set how big we want the dialog to be 537 550 dlg.setSize(dialogSize, dialogSize);
Note: See TracChangeset
for help on using the changeset viewer.
