[Javanetsim-cvs] javaNetSim/guiUI MainScreen.java,1.88,1.89
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2008-10-05 13:04:51
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10499/guiUI Modified Files: MainScreen.java Log Message: Index: MainScreen.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/MainScreen.java,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** MainScreen.java 3 Oct 2008 22:29:10 -0000 1.88 --- MainScreen.java 5 Oct 2008 13:03:48 -0000 1.89 *************** *** 2214,2218 **** JFileChooser chooser = new JFileChooser(); ! chooser.setDialogTitle("Save As ..."); chooser.setAcceptAllFileFilterUsed(false); chooser.addChoosableFileFilter(new JNSTFilter()); --- 2214,2218 ---- JFileChooser chooser = new JFileChooser(); ! chooser.setDialogTitle("Save As ..."); chooser.setAcceptAllFileFilterUsed(false); chooser.addChoosableFileFilter(new JNSTFilter()); *************** *** 2364,2368 **** System.out.println("Writing Simulation file"); ! System.out.println("Simulation was saved succesfully."); System.out.println("File "+ simSaveFile.getName() + " has been saved to " + simSaveFile.getAbsolutePath()); --- 2364,2368 ---- System.out.println("Writing Simulation file"); ! System.out.println("Simulation was saved succesfully."); System.out.println("File "+ simSaveFile.getName() + " has been saved to " + simSaveFile.getAbsolutePath()); *************** *** 2372,2376 **** isDirty=false; ! setStatus("Simulation was saved succesfully."); }catch(IOException e){ --- 2372,2376 ---- isDirty=false; ! setStatus("Simulation was saved succesfully."); }catch(IOException e){ *************** *** 2529,2533 **** }else if(strClassName.contains("GuiPC")){ deviceType = 2; ! Sim.addPC(strNodeName, false); }else if(strClassName.contains("GuiRouter")){ deviceType = 2; --- 2529,2536 ---- }else if(strClassName.contains("GuiPC")){ deviceType = 2; ! Sim.addPC(strNodeName, false); ! }else if(strClassName.contains("GuiPrinter")){ ! deviceType = 2; ! Sim.addPrinter(strNodeName, false); }else if(strClassName.contains("GuiRouter")){ deviceType = 2; *************** *** 2674,2677 **** --- 2677,2687 ---- Sandbox.setLayer(tempPC,3,0); GUInodeTable.put(strNodeName,tempPC); + }else if(strClassName.contains("GuiPrinter")){ + GuiPrinter tempPC = new GuiPrinter(strNodeName,this); + tempPC.setNodeLocation(pnt); + tempPC.setEnabled(false); + Sandbox.add(tempPC); + Sandbox.setLayer(tempPC,3,0); + GUInodeTable.put(strNodeName,tempPC); }else if(strClassName.contains("GuiRouter")){ GuiRouter tempRouter = new GuiRouter(strNodeName,this); |