@Override
	public void actionPerformed(ActionEvent arg0) {
		if(arg0.getActionCommand() == "listado"){
			ListaUsuarios lista = new ListaUsuarios();
			textoListadoDeUsuarios.setText(lista.getTodosUsuarios());
			textoListadoDeUsuarios.setEditable(false);
		} else if(arg0.getActionCommand() == "listar trinos"){
			ListarTrinos lt = new ListarTrinos();
			txtrListadoDeTodos.setText(lt.getTrinos());
			txtrListadoDeTodos.setEditable(false);
		} else if(arg0.getActionCommand() == "exportar Info"){
			ExportFile export = new ExportFile("exportarinfo.txt");
			export.export(textoInfo.getText());
		} else if (arg0.getActionCommand() == "Cerrar"){
				try {
					Naming.unbind("rmi://" + registro  + ":" + ServicioDatosInterface.PUERTO + "/" + ServicioDatosInterface.NAME);
				} catch (RemoteException | MalformedURLException
						| NotBoundException e) {
					e.printStackTrace();
				}
				System.exit(0);
		} else if (arg0.getActionCommand() == "exportar usuarios"){
			ExportFile export = new ExportFile("exportusuarios.txt");
			export.export(textoListadoDeUsuarios.getText());
		} else if (arg0.getActionCommand() == "exportar Trinos"){
			ExportFile export = new ExportFile("exportTrinos.txt");
			export.export(txtrListadoDeTodos.getText());
		} else if ( arg0.getActionCommand() == "info"){
			StringBuilder sb = new StringBuilder();
			sb.append("INFORMACION DEL SERVIDOR\n");
			sb.append("SISTEMA OPERATIVO = " + System.getProperty("os.name") + "\n");
			sb.append("VERSION DE TRINOS = 1.0\n");
			sb.append("CARPETA DE CONFIGURACION = practica/bbdd.txt");
			sb.append("ALUMNO = JACOBO GEADA ANSINO\n");
			sb.append("DNI = 53450445D");
			textoInfo.setText(sb.toString());
		}
	}