private void okButton(){
		try {
			
			if(NodeName != null && Interface != null && IPAddress != null && !ErrorFlag){
				Node temp = Sim.getNode(NodeName);
				NetworkLayerDevice nld = (NetworkLayerDevice)temp;
				
				nld.setTCPIPSettings(Interface, IPAddress, SubnetMask, DefaultGWAddress);
				
				controller.addToConsole(NodeName +"'s IP Address has been set to " + IPAddress + " on interface "+Interface+"\n");
				
				controller.addToConsole(NodeName +"'s Subnet Address has been set to " + SubnetMask + " on interface "+Interface+"\n");
				
				controller.addToConsole(NodeName +"'s Default Gateway Address has been set to " + DefaultGWAddress +"\n");
            
				this.dispose();
            }
		} catch (Exception e) {
			e.printStackTrace();
		}
	}