Package org.pokenet.client.ui.base

Examples of org.pokenet.client.ui.base.ConfirmationDialog


              m_confirm.setVisible(false);
              getDisplay().remove(m_confirm);
              m_confirm = null;
            }
          };
          m_confirm = new ConfirmationDialog("Are you sure you want to exit?",yes,no);
          getUi().getDisplay().add(m_confirm);
        }else{
          System.exit(0);
        }
      }
View Full Code Here


          getDisplay().remove(m_confirm);
          m_confirm = null;
          m_close = false;
        }
      };
      m_confirm = new ConfirmationDialog("Are you sure you want to exit?",yes,no);
      getUi().getDisplay().add(m_confirm);
    }   
    return m_close;
  }
View Full Code Here

          public void actionPerformed(ActionEvent evt) {
            GameClient.getInstance().getDisplay().remove(m_confirm);
            m_confirm = null;
          }
        };
        m_confirm = new ConfirmationDialog("Are you sure you want to remove " + m_name.getText() + " from your friends?");
        m_confirm.addYesListener(m_yes);
        m_confirm.addNoListener(m_no);
      }
    });
    m_cancel.addActionListener(new ActionListener(){
View Full Code Here

      public void actionPerformed(ActionEvent evt) {
        getDisplay().remove(m_confirm);
        m_confirm = null;
      }
    };
    m_confirm = new ConfirmationDialog("Are you sure you want to cancel the trade?", yes, no);
  }
View Full Code Here

            m_confirm = null;
            setVisible(true);
          }
       
        };
        m_confirm = new ConfirmationDialog("Are you sure you want to trade?", yes, no);
        setVisible(false);
      }
    });
    getContentPane().add(m_tradeBtn);
   
View Full Code Here

    use.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        GameClient.getInstance().getDisplay().remove(thisDialog);

        final ConfirmationDialog confirm = new ConfirmationDialog("Are you sure you want to change sprites?\nIt'll cost you P500!");
        confirm.addYesListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            GameClient.getInstance().getDisplay().remove(confirm);

            GameClient.getInstance().getPacketGenerator().writeTcpMessage(
                "S" + m_spriteList.getSelectedName());
          }
        });
        confirm.addNoListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            GameClient.getInstance().getDisplay().remove(confirm);
          }
        });

        GameClient.getInstance().getDisplay().add(confirm);
View Full Code Here

        GameClient.getInstance().getPacketGenerator().writeTcpMessage(
            "Pm" + m_pokeIndex + i + m_move);
        MoveLearningManager.getInstance().removeMoveLearning();
      } else {
        setAlwaysOnTop(false);
        m_replace = new ConfirmationDialog(
            "Are you sure you want to forget "
            + m_moveButtons.get(i).getText() + " to learn "
            + m_move + "?");
        m_replace.setAlwaysOnTop(true);
        ActionListener yes = new ActionListener() {
View Full Code Here

        public void actionPerformed(ActionEvent e) {
          GameClient.getInstance().getPacketGenerator().writeTcpMessage("Pe0" + index);
          GameClient.getInstance().getDisplay().remove(m_evolveDialog);
        }
      };
      m_evolveDialog = new ConfirmationDialog(GameClient.getInstance().getOurPlayer().getPokemon()
          [pokeIndex].getName() + " is trying to evolve.", yes, no);
    }
View Full Code Here

    m_sellButton[0].setSize(getWidth(), 35);
    m_sellButton[0].setLocation(0, m_cancel.getY() - 35);
    m_sellButton[0].addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e){
        try{
        final ConfirmationDialog m_confirm = new ConfirmationDialog("Are you sure you want to sell "
            + m_sellList.getSelectedName() + " for $" + (ItemDatabase.getInstance().getItem(
                m_sellList.getSelectedName()).getPrice() / 2) + "?");
        m_confirm.addYesListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
            GameClient.getInstance().getPacketGenerator().writeTcpMessage("Ss" + ItemDatabase.getInstance()
                .getItem(m_sellList.getSelectedName()).getId() + ",");
            GameClient.getInstance().getDisplay().remove(m_confirm);
          }
        });
        m_confirm.addNoListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
            GameClient.getInstance().getDisplay().remove(m_confirm);
          }
        });
        } catch (Exception e2) {e2.printStackTrace();}
View Full Code Here

TOP

Related Classes of org.pokenet.client.ui.base.ConfirmationDialog

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.