示例#1
0
  public MarketPanel(MarketGui gui) {
    this.gui = gui;
    host.setGui(hostGui);
    host.setAnimPanel(gui.animationPanel);

    gui.animationPanel.addGui(hostGui);

    iconDescription = new ImageIcon(getClass().getResource("/resources/img_market.png"));
    picDescription = new JLabel(iconDescription);
    host.startThread();

    setLayout(new GridLayout(1, 2, 20, 20));
    group.setLayout(new GridLayout(1, 2, 10, 10));

    group.add(customerPanel);
    // group.add(waiterPanel);

    initRestLabel();
    add(restLabel);
    add(group);

    this.addTeller("Clerk 1");
    this.addTeller("Clerk 2");
    this.addTeller("Clerk 3");
  }