Package net.yura.lobby.model

Examples of net.yura.lobby.model.PlayerInfo


    boolean edit=false;

    for (int c=0;c<list.size();c++) {

      PlayerInfo playerInfo = (PlayerInfo)list.get(c);

      panel.add(new JLabel(playerInfo.getLabel()));

      if (playerInfo.getCanEdit()) {

        panel.add(new JTextField(playerInfo.getInfo()));
        edit = true;
      }
      else {
        panel.add(new JLabel(playerInfo.getInfo()));
       
      }


    }
View Full Code Here


      List list = new Vector();


      for (int c=0;c<playerInfoObjects.size();c++) {

        PlayerInfo playerInfo = (PlayerInfo)playerInfoObjects.get(c);

        if (playerInfo.getCanEdit()) {

          Component component = panel.getComponent(((c+1)*2)-1);

          if (component instanceof JTextComponent) {

            playerInfo.setInfo( ((JTextComponent)component).getText() );

          }
          // SO FAR THIS IS THE ONLY TYPE WE KNOW ABOUT

          list.add(playerInfo);
View Full Code Here

TOP

Related Classes of net.yura.lobby.model.PlayerInfo

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.