Package mdes.slick.sui

Examples of mdes.slick.sui.Button.addActionListener()


      final int j = i;
      // Starts the item buttons
      Button item = new Button();
      item.setSize(60, 60);
      item.setLocation(50 + (80 * i), 85);
      item.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          destroyPopup();
          useItem(j);
        }
      });
View Full Code Here


    Button cancel = new Button("Cancel");
    cancel.pack();
    cancel.setLocation(130, 280);
    getContentPane().add(cancel);

    cancel.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        GameClient.getInstance().getDisplay().remove(thisDialog);
      }
    });
View Full Code Here

    label.setLocation(5, 15);
    this.setResizable(false);
    this.setSize(label.getWidth() + 10, label.getHeight() + 90);
    ok.setSize(50, 25);
    ok.setLocation(this.getWidth()/2-25, this.getHeight()- 60);
    ok.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        setVisible(false);
      }
    });
    this.setLocation((container.getDisplay().getWidth()/2)-(this.getWidth()/2),
View Full Code Here

        yousure.pack();
        Button yes = new Button("Release");
        yes.pack();
        yes.setLocation(0, confirm.getHeight()
            - confirm.getTitleBar().getHeight() - yes.getHeight());
        yes.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            getDisplay().remove(confirm);

            GameClient.getInstance().getPacketGenerator().writeTcpMessage(
View Full Code Here

        });
        Button no = new Button("Keep");
        no.pack();
        no.setLocation(yes.getWidth(), confirm.getHeight()
            - confirm.getTitleBar().getHeight() - no.getHeight());
        no.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            getDisplay().remove(confirm);

            GameClient.getInstance().getPacketGenerator().writeTcpMessage("Bf");
View Full Code Here

              final Label m_label = new Label(m_offerUser.get(i));
              final Button m_offerBtn = m_offers.get(m_offerUser.get(i));
              final Button m_cancel = new Button("Cancel");
              m_cancel.setHeight(25);
              m_cancel.setWidth(45);
              m_cancel.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                  declineOffer(j);
                }
              });
              m_label.setFont(GameClient.getFontSmall());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.