[Javanetsim-cvs] javaNetSim/guiUI MainScreen.java,1.63,1.64
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2007-09-16 19:38:10
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv31679/guiUI Modified Files: MainScreen.java Log Message: First attempt to create simple socket layer: modfied UDP protocol... Index: MainScreen.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/MainScreen.java,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** MainScreen.java 16 Sep 2007 17:44:14 -0000 1.63 --- MainScreen.java 16 Sep 2007 19:38:04 -0000 1.64 *************** *** 260,263 **** --- 260,268 ---- return c; } + + public boolean isCellEditable(int row, int column) + { + return false; + } }; *************** *** 564,567 **** --- 569,584 ---- mConsole.setColumnIdentifiers(new Object[]{"Time","Node","Packet","Layer","Info"}); + + pnlConsole.getColumnModel().getColumn(0).setMaxWidth(100); + pnlConsole.getColumnModel().getColumn(0).setMinWidth(100); + pnlConsole.getColumnModel().getColumn(1).setMaxWidth(100); + pnlConsole.getColumnModel().getColumn(1).setMinWidth(100); + pnlConsole.getColumnModel().getColumn(2).setMaxWidth(200); + pnlConsole.getColumnModel().getColumn(2).setMinWidth(200); + pnlConsole.getColumnModel().getColumn(3).setMaxWidth(100); + pnlConsole.getColumnModel().getColumn(3).setMinWidth(100); + pnlConsole.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); + //pnlConsole.setEnabled(false); + // pnlConsole.getColumnModel().getColumn(0).setMaxWidth(100); // pnlConsole.getColumnModel().getColumn(0).setMinWidth(100); *************** *** 578,582 **** // pnlConsole.getColumnModel().getColumn(3).sizeWidthToFit(); // pnlConsole.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); ! --- 595,599 ---- // pnlConsole.getColumnModel().getColumn(3).sizeWidthToFit(); // pnlConsole.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); ! *************** *** 1431,1435 **** --- 1448,1454 ---- if(filters2[1]) layer = pad(recording[4],15,' '); else layer=""; + //pnlConsole.append(pad(recording[1],15,' ')+packet+pad(recording[3],10,' ')+layer+recording[5]+ "\n"); + System.out.println(pad(recording[1],15,' ')+packet+pad(recording[3],10,' ')+layer+recording[5]+ "\n"); insertInConsole(recording[1], packet, layer, recording[5]); } |