@Override
	public void actionPerformed(ActionEvent arg0) {
		if(arg0.getActionCommand() == "exportLogins"){
			ExportFile export = new ExportFile("usuariosOnline.txt");
			export.export(textlogin.getText());
		} else if (arg0.getActionCommand() == "exportInfo"){
			ExportFile export = new ExportFile("infoServidor.txt");
			export.export(textInfo.getText());
		} else if (arg0.getActionCommand() == "cerrar"){
			try {
				try {
					Naming.unbind("rmi://" + reg0  + ":" + ServicioAutenticacionInterface.PUERTO + "/" + ServicioAutenticacionInterface.NAME);
					Naming.unbind("rmi://" + reg1  + ":" + ServicioGestorInterface.PUERTO + "/" + ServicioGestorInterface.NAME);
				} catch (MalformedURLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} catch (RemoteException | NotBoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			System.exit(0);
		} else if (arg0.getActionCommand() == "info"){
			
		} else if (arg0.getActionCommand() == "login"){
			try {
				textlogin.setText(gestor.getUsuariosConectados());
			} catch (RemoteException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
	}