[Javanetsim-cvs] javaNetSim/guiUI SetTCPIPPropertiesDialog.java, 1.4, 1.5
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2006-11-08 21:38:02
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29061/guiUI Modified Files: SetTCPIPPropertiesDialog.java Log Message: Index: SetTCPIPPropertiesDialog.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/SetTCPIPPropertiesDialog.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SetTCPIPPropertiesDialog.java 8 Nov 2006 14:27:29 -0000 1.4 --- SetTCPIPPropertiesDialog.java 8 Nov 2006 21:37:47 -0000 1.5 *************** *** 1,582 **** ! /* ! Java Firewall Simulator (jFirewallSim) ! ! Copyright (c) 2004, jFirewallSim development team All rights reserved. ! ! Redistribution and use in source and binary forms, with or without modification, are ! permitted provided that the following conditions are met: ! ! - Redistributions of source code must retain the above copyright notice, this list ! of conditions and the following disclaimer. [...1173 lines suppressed...] ! private void checkForDefaultSubnet(){ ! String tempip = txtIpAddress.getText(); ! ! //if(Simulation.validateDecIP(tempip)){ ! if(txtSubnetMask.getText().equals("Enter Subnet Mask") || txtSubnetMask.getText() == null || txtSubnetMask.getText().equals("0.0.0.0")){ ! String tempSubnet = Simulation.getDefaultSubnetMask(tempip); ! txtSubnetMask.setText(tempSubnet); ! ! txtSubnetMask.setEnabled(true); ! } ! btnOk.setEnabled(true); ! ! /*}else{ ! txtSubnetMask.setText("Enter Subnet Mask"); ! txtSubnetMask.setEnabled(false); ! }*/ ! } ! ! } ! |