private ConexionServidor() {
		setLayout(new GridLayout(4,2));
		
		add(new JLabel("Usuario:"));
		usuarioFld = new JTextField(10);
		usuarioFld.addKeyListener(this);
		add(usuarioFld);
		add(new JLabel("Password:"));
		passwordFld = new JPasswordField(10);
		passwordFld.addKeyListener(this);
		add(passwordFld);
		add(new JLabel("Servidor:"));
		ipFld = new JTextField(10);
		ipFld.addKeyListener(this);
		add(ipFld);
		
		entrarBtn = new JButton("Entrar");
		entrarBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try {
					if(System.getSecurityManager() ==  null)
						System.setSecurityManager(new RMISecurityManager());
					
					if(ipFld.getText().equals(""))
						ipFld.setText("127.0.0.1");
					
					// Obtenemos la instancia del servidor Remoto
					servidor = (IServidorInventario) Naming.lookup("//"+ipFld.getText()+"/Inventario");
					identificadorUnico = servidor.conectarConServidor(usuarioFld.getText(), passwordFld.getPassword());
					usuarioFld.setText("");
					passwordFld.setText("");
					ipFld.setText("");
					
					if(identificadorUnico != null && servidor != null) {
						isConnected = true;
						ManejadorComandos.getInstancia().setMomento();
						new InformacionUsuario(identificadorUnico);
						MainPanelBuilder.setDatos(servidor.getAllItems(identificadorUnico, Inventario.getOrdenamientoDatos()));
						Inventario.setStatusBarText("Se ha conectado al servidor con exito");
					}
					else {
						isConnected = false;
						Inventario.setStatusBarText("Datos Incorrectos, conexion fallida");
					}
					
				} catch (MalformedURLException ex) {
					usuarioFld.setText("");
					passwordFld.setText("");
					ipFld.setText("");
					Inventario.setStatusBarText("La direccion IP del servidor no es valida");
					ex.printStackTrace();
				} catch (RemoteException ex) {
					usuarioFld.setText("");
					passwordFld.setText("");
					ipFld.setText("");
					ex.printStackTrace();
				} catch (NotBoundException ex) {
					usuarioFld.setText("");
					passwordFld.setText("");
					ipFld.setText("");
					ex.printStackTrace();
				}
				dispose();
			}
		});
		add(entrarBtn);
		
		cancelarBtn = new JButton("Cancelar");
		cancelarBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				usuarioFld.setText("");
				passwordFld.setText("");
				ipFld.setText("");
				dispose();
			}
		});
		add(cancelarBtn);
		
		setSize(200,140);
		setLocation(Toolkit.getDefaultToolkit().getScreenSize().width/2-100, Toolkit.getDefaultToolkit().getScreenSize().height/2-70);
		setTitle("Conectar a Servidor");
		setResizable(false);
		setModal(true);
	}