示例#1
0
  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());
  }
示例#2
0
  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());
    }
  }