Package org.cspoker.client.gui.swt.window

Examples of org.cspoker.client.gui.swt.window.GameWindow


//      public void run() {
//        lobby2.show();
//
//      }
//    });
    final GameWindow w = client.getGui().getGameWindow(tableId, true);
    w.getUser().sitIn(new SeatId(0), 0);
//    final GameWindow w2 = client2.getGui().getGameWindow(tableId, true);
//    w2.getUser().sitIn(new SeatId(2), 0);
    // Run blocking calls in extra thread
    displayexecutor.execute(new Runnable() {

      public void run() {
        w.show();

      }
    });
//    displayexecutor.execute(new Runnable() {
//
View Full Code Here


        public void run() {
          lobby.show();

        }
      });
      final GameWindow w = client.getGui().getGameWindow(tableId, true);
      w.getUser().sitIn(new SeatId(seatId), buyin);
      // Run blocking calls in extra thread
      displayexecutor.execute(new Runnable() {

        public void run() {
          w.show();

        }
      });
    }
    // Listen to events#
View Full Code Here

   * @return The {@link GameWindow} for the given id. If it doesn't exist, it
   *         is created when <code>createNew</code> is <code>true</code>,
   *         otherwise <code>null</code> is returned
   */
  public GameWindow getGameWindow(TableId tableId, boolean createNew) {
    GameWindow w = gameWindows.get(tableId);
    if (w == null && createNew) {
      // No Game Window for this table yet
     
      DetailedHoldemTable table;
      try {
        table = getLobby().getContext().getHoldemTableInformation(tableId);
        w = new GameWindow(getLobby(), table);
      } catch (RemoteException e) {
        throw new IllegalStateException("Could not retrieve remote table information", e);
      } catch (IllegalActionException exception) {
        logger.error("This should not happen", exception);
      }
View Full Code Here

TOP

Related Classes of org.cspoker.client.gui.swt.window.GameWindow

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.