public void connectedScreen(Cliente cliente) { System.setProperty("username", cliente.getUsername()); getContentPane().removeAll(); System.gc(); ConnectedPane p = new ConnectedPane(this, cliente); cliente.setPanel(p); add(p); paintAll(getGraphics()); }
public static void main(String[] args) throws Exception { Cliente c = new Cliente(); try { c.comprobarEscritura(); c.comprobarLectura(); c.comprobarActualizacion(); c.comprobarBorrado(); } catch (ExcepcionDAO e) { System.err.println(e.getLocalizedMessage()); } }