Package mdes.slick.sui.event

Examples of mdes.slick.sui.event.MouseAdapter


      m_shownFriends[i].setFont(GameClient.getFontSmall());
      if (m_online.contains(m_shownFriends[i]))
        m_shownFriends[i].setForeground(Color.white);
      else
        m_shownFriends[i].setForeground(Color.gray);
      m_shownFriends[i].addMouseListener(new MouseAdapter(){
        @Override
        public void mouseEntered(MouseEvent e) {
          super.mouseEntered(e);
          m_shownFriends[j].setForeground(new Color(255, 215, 0));
        }
View Full Code Here


        m_theirPokeInfo[index].setVisible(false);
        m_theirPokeInfo[index].setAlwaysOnTop(true);
        m_theirPokeInfo[index].setLocation(m_theirPokes[index].getX(),
            m_theirPokes[index].getY() + 32);
        GameClient.getInstance().getDisplay().add(m_theirPokeInfo[index]);
        m_theirPokes[index].addMouseListener(new MouseAdapter() {
          @Override
      public void mouseEntered(MouseEvent e) {
        super.mouseEntered(e);
        m_theirPokeInfo[j].setVisible(true);
      }
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        destroyPopup();
        closeBag();
      }
    });
    getContentPane().addMouseListener(new MouseAdapter() {
          @Override
          public void mouseReleased(MouseEvent e) {
            super.mouseReleased(e);
            destroyPopup();
          }
View Full Code Here

      }
    });
    getContentPane().add(m_cancel);
   
    // Frame configuration
    addMouseListener(new MouseAdapter(){
      @Override
      public void mousePressed(MouseEvent e) {
        destroyPopup();
      }
    });
View Full Code Here

        final int j = i;
        tempLabel.setSize(100, 15);
        tempLabel.setFont(GameClient.getFontSmall());
        tempLabel.setForeground(Color.white);
        tempLabel.setLocation(0, y);
        tempLabel.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseReleased(MouseEvent e) {
            super.mouseReleased(e);
            processItemUse(m_use, m_item, j, m_isBattle);
          }
View Full Code Here

      try {
        m_container[i].add(m_pokeBall[i]);
        m_pokeBall[i].setLocation(4, 4);
        m_pokeName[i].setFont(GameClient.getFontSmall());
        m_pokeName[i].setForeground(new Color(255, 255, 255));
        m_pokeName[i].addMouseListener(new MouseAdapter() {

          @Override
          public void mouseReleased(MouseEvent e) {
            super.mouseReleased(e);
            PokemonInfoDialog info = new PokemonInfoDialog(m_pokes[j]);
View Full Code Here

        try{
          m_shownLabels[i] = new Label(m_items.get(i + m_scrollIndex));
          //Creates the Labels for each item and creates mouse listeners.
          final int idx = m_items.size();
          m_shownLabels[i].addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
              itemClicked(m_shownLabels[j].getText(), idx);
            }
          });
View Full Code Here

   * @param item
   */
  public void setSelected(String item){
    m_item.setText(item);
    m_item.pack();
    m_item.addMouseListener(new MouseAdapter(){
      @Override
      public void mouseEntered(MouseEvent e) {
        super.mouseEntered(e);
        m_item.setForeground(Color.blue);
      }
View Full Code Here

        m_shownItems[i] = new Label(m_items[i + m_index]);
      } catch (Exception e) {
        m_shownItems[i] = new Label();
      }
      m_shownItems[i].pack();
      m_shownItems[i].addMouseListener(new MouseAdapter(){
        @Override
        public void mouseEntered(MouseEvent e) {
          super.mouseEntered(e);
          m_shownItems[j].setForeground(Color.blue);
        }
View Full Code Here

          Container m_surface = new Container();
          m_surface.setWidth(Integer.parseInt(details[1]));
          m_surface.setHeight(Integer.parseInt(details[2]));
          m_surface.setX(Integer.parseInt(details[3]) * 8);
          m_surface.setY(Integer.parseInt(details[4]) * 8);
          m_surface.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseReleased(MouseEvent e) {
              super.mouseReleased(e);
            }
View Full Code Here

TOP

Related Classes of mdes.slick.sui.event.MouseAdapter

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.