Package data

Examples of data.Duell


      stmt = getConnection().createStatement();
      res = stmt.executeQuery("SELECT * FROM duell WHERE fertig=false AND " +
        "nick2 = " + user.getNick() + "");
      while (res.next())
      {
        duelle.add(new Duell(res));
      }
      return duelle;
    }
    finally
    {
View Full Code Here


    try
    {
      int selSpieler = listSpieler.getSelectedIndex();
      String nick2 = model.get(selSpieler).toString();
      String ip = Datenbank.getInstance().getIpFromUser(nick2);
      duell = new Duell(loggedUser.getNick(), nick2, 0, 0, 0, 0, 0, 0, 0,
        false, false, 0, 0, false);
      (new AddDuellWorker(duell)).execute();
      DuellDlg dlg = new DuellDlg(this, true);
      dlg.setVisible(true);
    }
View Full Code Here

    return colName.length;
  }

  public Object getValueAt(int rowIndex, int columnIndex)
  {
    final Duell duell = duelle.get(rowIndex);
    switch (columnIndex)
    {
      case 0:
        return duell.getRn();
      case 1:
        return duell.getP1();
      case 2:
        return duell.getW1() ? "kooperieren" : "nicht kooperieren";
      case 3:
        return duell.getW2() ? "kooperieren" : "nicht kooperieren";
      case 4:
        return duell.getP2();
      default:
        return "?";
    }
  }
View Full Code Here

TOP

Related Classes of data.Duell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.