Package mdes.slick.sui.skin.simple

Examples of mdes.slick.sui.skin.simple.SimpleArrowButton


    getContentPane().setY(getContentPane().getY() + 1);
    setBackground(new Color(0, 0, 0, 85));
    setTitle("Friends");
    setSize(170, 180);
 
    m_up = new SimpleArrowButton(SimpleArrowButton.FACE_UP);
    m_up.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(-1);
      }
    });
    m_up.setEnabled(false);
    m_up.setSize(15, 15);
    m_up.setLocation(getWidth() - 15, 0);
    getContentPane().add(m_up);
    m_down = new SimpleArrowButton(SimpleArrowButton.FACE_DOWN);
    if (m_friends.size() <= 10)
      m_down.setEnabled(false);
    m_down.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(1);
View Full Code Here


            + m_pokeName[i].getWidth() + 10, m_pokeName[i].getY());
        m_container[i].add(m_hp[i]);
        m_hp[i].setSize(72, 5);
        m_hp[i].setLocation(m_hpBar[i].getX() + 23, m_hpBar[i].getY() + 3);
        if (i != 0) {
          m_switchUp[i] = new SimpleArrowButton(
              SimpleArrowButton.FACE_UP);
          m_switchUp[i].addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              GameClient.getInstance().getPacketGenerator().writeTcpMessage("s" + String.valueOf(j)
                  + ","+String.valueOf(j - 1));
              //reinitialize the gui
              getContentPane().removeAll();
              allocateVariables();
              loadImages(m_pokes);
              initGUI();
            }
          });
          m_switchUp[i].setHeight(16);
          m_switchUp[i].setWidth(16);
          m_container[i].add(m_switchUp[i]);
        }
        if (i != 5) {
          m_switchDown[i] = new SimpleArrowButton(
              SimpleArrowButton.FACE_DOWN);
          m_switchDown[i].addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              GameClient.getInstance().getPacketGenerator().writeTcpMessage("s" + String.valueOf(j)
                  + ","+String.valueOf(j + 1));
View Full Code Here

    /**
     * Default Constructor
     */
  public ChatWidget(){
    m_up = new SimpleArrowButton(SimpleArrowButton.FACE_UP);
    m_down = new SimpleArrowButton(SimpleArrowButton.FACE_DOWN);

    m_up.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(-1);
      }
View Full Code Here

  /**
   * Lays out the scroll buttons
   */
  public void layoutScrollButtons(){
    int buttonWidth = 16;
    m_up = new SimpleArrowButton(SimpleArrowButton.FACE_UP);
    m_up.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(-1);
      }
    });
    m_up.setEnabled(false);
    m_up.setSize(buttonWidth, buttonWidth);
    m_up.setLocation(getWidth() - buttonWidth, 0);
   
    m_down = new SimpleArrowButton(SimpleArrowButton.FACE_DOWN);
    m_down.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(1);
      }
    });
View Full Code Here

   * Default Constructor
   */
  public ComboBox(){
    m_this = this;
    m_elements = new ArrayList<String>();
    m_arrow = new SimpleArrowButton(SimpleArrowButton.DOWN);
    m_arrow.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e){
        if (m_itemSelector == null) {
          m_itemSelector = new ItemSelector(m_this, 6, m_elements.toArray(new String
              [m_elements.size()]), (int)getWidth(), (int)m_arrow.getWidth());
View Full Code Here

    m_shownItems = new Label[m_amountShown];
    for (int i = 0; i < m_amountShown; i++){
      m_shownItems[i] = new Label();
    }

    m_up = new SimpleArrowButton(SimpleArrowButton.FACE_UP);
    m_up.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(-1);
      }
    });
    m_up.setEnabled(false);
    m_up.setSize(buttonWidth, buttonWidth);
    m_up.setLocation(width - buttonWidth, 0);
   
    m_down = new SimpleArrowButton(SimpleArrowButton.FACE_DOWN);
    if (m_items.length <= m_amountShown)
      m_down.setEnabled(false);
    m_down.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        scroll(1);
View Full Code Here

TOP

Related Classes of mdes.slick.sui.skin.simple.SimpleArrowButton

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.