Package mdes.slick.sui

Examples of mdes.slick.sui.ToggleButton


    };
   
    int x = 10, y = 10;
    for (int i = 0; i < 6; i++){
      //Show Our Pokemon for Trade
      m_ourPokes[i] = new ToggleButton();
      m_ourPokes[i].setSize(32, 32);
      m_ourPokes[i].setVisible(true);
      try {
        m_ourPokes[i].setImage(GameClient.getInstance().getOurPlayer()
            .getPokemon()[i].getIcon());
      } catch (NullPointerException e){
        m_ourPokes[i].setGlassPane(true);
      }
     
      getContentPane().add(m_ourPokes[i]);
      if (i < 3)
        m_ourPokes[i].setLocation(x, y);
      else
        m_ourPokes[i].setLocation(x + 40, y);
     
      //Show the Other Character's Pokemon for Trade
      m_theirPokes[i] = new ToggleButton();
      m_theirPokes[i].setSize(32, 32);
      m_theirPokes[i].setVisible(true);
      m_theirPokes[i].setGlassPane(true);
      getContentPane().add(m_theirPokes[i]);
View Full Code Here


    int buttonX = 7;
    int buttonY = 5;
    int buttonCount = 0;

    for (int i = 0; i <= 29; i++) {
      m_buttons[i] = new ToggleButton();
      final int j = i;
      m_buttons[i].addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          setChoice(j);
        }
View Full Code Here

   * Loads the necessary data
   */
  public void loadPokes() {
    LoadingList.setDeferredLoading(true);
    for (int i = 0; i < 6; i++) {
      m_pokeIcon[i] = new ToggleButton();
      m_pokeName[i] = new Label();

      m_level[i] = new Label();
      m_hp[i] = new ProgressBar(0, 0);
      m_hp[i].setForeground(Color.green);
View Full Code Here

      respath="";
    try {
      InputStream f;
      m_starters = new ToggleButton[12];
      for(int i = 0; i < m_starters.length; i++) {
        m_starters[i] = new ToggleButton();
        m_starters[i].setSize(32, 32);
        m_starters[i].setVisible(true);
      }
      f = FileLoader.loadFile(respath+"res/pokemon/icons/001.gif");
      m_starters[0].setImage(new Image(f, respath+"res/pokemon/icons/001.gif", false));
View Full Code Here

TOP

Related Classes of mdes.slick.sui.ToggleButton

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.