[Javanetsim-cvs] javaNetSim/guiUI DataLinkLayerDevice.java,1.1.1.1,1.2 LinkProperties.java,1.3,1.4 N
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2006-02-23 11:56:14
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16516/guiUI Modified Files: DataLinkLayerDevice.java LinkProperties.java NetworkLayerDevice.java Log Message: Index: NetworkLayerDevice.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/NetworkLayerDevice.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** NetworkLayerDevice.java 3 Dec 2005 12:20:52 -0000 1.5 --- NetworkLayerDevice.java 23 Feb 2006 11:56:00 -0000 1.6 *************** *** 118,122 **** } }); ! mnuPR.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ controller.PrintRouteTable(lblNodeName.getText()); --- 118,123 ---- } }); ! ! mnuPR.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ controller.PrintRouteTable(lblNodeName.getText()); Index: LinkProperties.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/LinkProperties.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LinkProperties.java 4 Dec 2005 16:47:26 -0000 1.3 --- LinkProperties.java 23 Feb 2006 11:56:00 -0000 1.4 *************** *** 179,183 **** this.SBox = SBox; ! setTitle("Link Properties (Ahtung: NOT WORKING!!!!!)"); initGUI(nodeArray,selectedIndex); --- 179,183 ---- this.SBox = SBox; ! setTitle("Link Properties"); initGUI(nodeArray,selectedIndex); Index: DataLinkLayerDevice.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/DataLinkLayerDevice.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** DataLinkLayerDevice.java 8 Nov 2005 04:04:26 -0000 1.1.1.1 --- DataLinkLayerDevice.java 23 Feb 2006 11:56:00 -0000 1.2 *************** *** 48,52 **** --- 48,54 ---- private JMenuItem mnuShowState = new JMenuItem("Show state"); private JMenuItem mnuReset = new JMenuItem("Reset"); + private JMenuItem mnuLink = new JMenuItem("Links properties"); private JMenuItem mnuBreakLink = new JMenuItem("Break link"); + /** *************** *** 82,88 **** --- 84,98 ---- }); + mnuLink.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent e){ + controller.showLinkDialog(lblNodeName.getText()); + } + }); + + GuiNodePopMenu.add(mnuProperties); GuiNodePopMenu.add(mnuShowState); GuiNodePopMenu.add(mnuReset); + GuiNodePopMenu.add(mnuLink); GuiNodePopMenu.add(mnuBreakLink); } |