Ejemplo n.º 1
0
  @FXML
  private void joinTable(javafx.event.ActionEvent event) throws ExistingUserException {
    Table ta = new Table("", null, true, true, 5, 2, true, 100, 30, 0, 0);

    ta.getListPlayers().addUser(user);
    ta.getListPlayers().addUser(new UserLight("pseudo2"));
    ta.getListPlayers().addUser(new UserLight("pseudo3"));
    ta.getListPlayers().addUser(new UserLight("pseudo4"));
    ta.getListPlayers().addUser(new UserLight("pseudo5"));

    ihmTable.getTableToMainListener().joinTable(IAmYourPaneLuke, ta);
  }
Ejemplo n.º 2
0
  public MainController() {
    // constructor
    IHMMainClientManager maii = new IHMMainClientManager();
    ihmTable = maii.getManagerTable();
    User us = new User();
    user = new UserLight("pseudo1");
    us.setCore(user);

    maii.getManagerData().setUserLocal(us);
    System.out.println(maii.getManagerData().getUserLocal());
    System.out.println(ihmTable.getDataInterface().getUser());
  }
Ejemplo n.º 3
0
 @FXML
 private void launchTable(javafx.event.ActionEvent event) {
   ihmTable.getTableToMainListener().showTableCreationForm(IAmYourPaneLuke);
 }