@Override
		public void actionPerformed(ActionEvent e) {
			
				Nif nif = new Nif(input.getText());
				Cif cif = new Cif(input.getText());
				Nie nie = new Nie(input.getText());
			
				if(nif.isNif()){
					icon.setText("Nif Correcto");
				}else if(cif.isCif()){
					icon.setText("Cif Correcto");
				}else if(nie.isNie()){
					icon.setText("Nie Correcto");
				} 
				else
					icon.setText("Incorrecto");
			
				tmp.start();
				input.requestFocus();
				input.selectAll();
//				t= new Thread(Gui.this);
//				t.start();
		}