[Javanetsim-cvs] javaNetSim/guiUI MainScreen.java,1.19,1.20
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2005-12-04 20:37:30
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6336/guiUI Modified Files: MainScreen.java Log Message: Normal TCP PrintLayerInfo. Index: MainScreen.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/MainScreen.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** MainScreen.java 4 Dec 2005 16:26:30 -0000 1.19 --- MainScreen.java 4 Dec 2005 20:37:18 -0000 1.20 *************** *** 1023,1027 **** } ! printLayerInfo(); // Ok button was pressed. --- 1023,1027 ---- } ! printLayerInfo(true); // Ok button was pressed. *************** *** 1051,1055 **** ! public void printLayerInfo(){ pnlConsole.append("\n"); --- 1051,1055 ---- ! public void printLayerInfo(boolean header){ pnlConsole.append("\n"); *************** *** 1063,1066 **** --- 1063,1067 ---- }else{ + if(header){ pnlConsole.append("**************************************************************************************************************** \n"); *************** *** 1068,1071 **** --- 1069,1073 ---- pnlConsole.append("**************************************************************************************************************** \n"); + } Iterator it = vecRecordedInfo.iterator(); *************** *** 1082,1087 **** } ! ! pnlConsole.append("****************************************************************************************************************\n"); Sim.clearLayerInfo(); --- 1084,1091 ---- } ! ! if(header){ ! pnlConsole.append("****************************************************************************************************************\n"); ! } Sim.clearLayerInfo(); *************** *** 1091,1096 **** --- 1095,1110 ---- } + public void addFooter(){ + pnlConsole.append("****************************************************************************************************************\n"); + } + + public void addHeader(){ + pnlConsole.append("**************************************************************************************************************** \n"); + pnlConsole.append("The following is a record of the last Transactions movements. \n"); + + pnlConsole.append("**************************************************************************************************************** \n"); + } /** *************** *** 2893,2897 **** echo1.Listen(); ! printLayerInfo(); }catch(Exception e){ --- 2907,2911 ---- echo1.Listen(); ! printLayerInfo(true); }catch(Exception e){ *************** *** 2921,2925 **** echo1.Listen(); ! printLayerInfo(); }catch(Exception e){ --- 2935,2939 ---- echo1.Listen(); ! printLayerInfo(true); }catch(Exception e){ *************** *** 2969,2974 **** } ! ! printLayerInfo(); } --- 2983,2988 ---- } ! ! printLayerInfo(true); } *************** *** 2991,2995 **** public void run() { ! ms.printLayerInfo(); this.cancel(); } --- 3005,3010 ---- public void run() { ! ms.printLayerInfo(false); ! ms.addFooter(); this.cancel(); } *************** *** 3035,3040 **** } ! ! printLayerInfo(); } --- 3050,3055 ---- } ! addHeader(); ! printLayerInfo(false); } |