Package vues.commun

Examples of vues.commun.Panel_GridBag


    public Panel_GridBag contruirePanelEmplacementsJoueur()
    {
        ArrayList<Joueur> joueurs = jeuClient.getJoueurs();
        int maxJoueurs = jeuClient.getTerrain().getNbJoueursMax();

        Panel_GridBag pJoueurs = new Panel_GridBag(new Insets(2, 2, 2, 2));
        pJoueurs.setBackground(LookInterface.COULEUR_DE_FOND_PRI);
        pJoueurs.setPreferredSize(new Dimension(350, 150));

        for (int i = 0; i < maxJoueurs; i++)
        {
            /*
            JLabel lNo = new JLabel((i + 1) + ". ");
            lNo.setFont(GestionnaireDesPolices.POLICE_SOUS_TITRE);
            pJoueurs.add(lNo, 0, i, 1);
            */

            // joueur trouvé
            if (i < joueurs.size())
                ajouterJoueur(joueurs.get(i), pJoueurs, i);
            // inconnu
            else
            {
                JLabel lInconnu = new JLabel("???");
                lInconnu.setFont(GestionnaireDesPolices.POLICE_SOUS_TITRE);
                pJoueurs.add(lInconnu, 1, i, 1);
            }
        }
       
        return pJoueurs;
    }
View Full Code Here

TOP

Related Classes of vues.commun.Panel_GridBag

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.