Package org.pokenet.client.ui.frames

Examples of org.pokenet.client.ui.frames.BagDialog


      m_bagForm.getContentPane().setY(m_bagForm.getContentPane().getY() + 1);
      m_bagForm.setBackground(new Color(0, 0, 0, 70));
      m_bagForm.setResizable(false);
      m_bagForm.setDraggable(false);
      m_bagForm.setTitle("     Bag");
      BagDialog pane = new BagDialog(
          GameClient.getInstance().getOurPlayer().getItems()) {
        public void itemClicked(PlayerItem item) {
          GameClient.getInstance().getPacketGenerator().writeTcpMessage("u" +
              item.getItem().getName());
        }
        public void cancelled() {
          getDisplay().remove(m_bagForm);
          m_bagForm = null;
        }
        public void loadBag() {
          getDisplay().remove(m_bagForm);
          m_bagForm = null;
          m_bag = new BigBagDialog();
          getDisplay().add(m_bag);
        }
      };
      pane.setSize(80, 246);
      pane.pack();
     
      m_bagForm.getTitleBar().getCloseButton().setVisible(false);
      m_bagForm.getContentPane().add(pane);
      m_bagForm.setSize(pane.getWidth(),
          pane.getHeight() + m_bagForm.getTitleBar().getHeight());
      getDisplay().add(m_bagForm);
      m_bagForm.setLocation(m_buttons[2].getX()67 - getTitleBar().getHeight());
      m_bagForm.setDraggable(false);
    }
    }
View Full Code Here

TOP

Related Classes of org.pokenet.client.ui.frames.BagDialog

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.