pCenterPanel.add(Box.createVerticalStrut(10));
    public EndCheckPanel(Activity activity)    {        super();        this.activity = activity;        // recuperation de la taille de la fenetre        Rectangle screenSize = GraphicsEnvironment                .getLocalGraphicsEnvironment().getMaximumWindowBounds();        int iWidth = screenSize.width;               JPanel pCenterPanel = new JPanel();        pCenterPanel                .setLayout(new BoxLayout(pCenterPanel, BoxLayout.PAGE_AXIS));        // Ajout du role        Role r = null;        r = this.activity.getRole();        String role = new String("");        role = r.getName();        JPanel pRoleTitlePanel = new JPanel(new FlowLayout(FlowLayout.CENTER));        JLabel lRoleTitleLabel = new JLabel("");        lRoleTitleLabel = new JLabel("["                + LanguagesManager.getInstance().getString("CheckRoleLabel")                + role + "]");        lRoleTitleLabel.setBackground(Color.WHITE);        pRoleTitlePanel.setBackground(Color.WHITE);        pRoleTitlePanel.add(lRoleTitleLabel);        Dimension roleTitleLabelSize = lRoleTitleLabel.getPreferredSize();        pRoleTitlePanel.setMaximumSize(new Dimension(iWidth,                roleTitleLabelSize.height));        pCenterPanel.add(pRoleTitlePanel);        pCenterPanel.add(Box.createVerticalStrut(10));        // section produits        if (this.activity.hasOutputProducts())        {            // mise en place de la phrase de titre            JPanel pProductTitlePanel = new JPanel(new FlowLayout(                    FlowLayout.LEFT));            JLabel lProductsTitleLabel = new JLabel("");            //TODO changer le label            lProductsTitleLabel = new JLabel(LanguagesManager.getInstance()                    .getString("CheckOutputProductsLabel"), SwingConstants.LEFT);            lProductsTitleLabel.setBackground(Color.WHITE);            pProductTitlePanel.setBackground(Color.WHITE);            pProductTitlePanel.add(lProductsTitleLabel);            Dimension productTitleLabelSize = lProductsTitleLabel                    .getPreferredSize();            pProductTitlePanel.setMaximumSize(new Dimension(iWidth,                    productTitleLabelSize.height));            pCenterPanel.add(pProductTitlePanel);            pCenterPanel.add(Box.createVerticalStrut(10));            // mise en place des produits (1 ligne par produit)            for (Product product : this.activity.getOutputProducts())            {                JPanel pProduct = new JPanel(new FlowLayout(FlowLayout.LEFT));                pProduct.add(Box.createHorizontalStrut(15));                JLabel lProductLabel = new JLabel(product.getName(),                        SwingConstants.LEFT);                // les lignes suivantes permettent l'affichage de l'icone avec                // le libelle                lProductLabel.setIcon(ModelResourcesManager.getInstance()                        .getSmallIcon(product));                lProductLabel.setBackground(Color.WHITE);                Font fontProduct = pProductTitlePanel.getFont();                lProductLabel.setFont(fontProduct.deriveFont(Font.PLAIN));                pProduct.setBackground(Color.WHITE);                pProduct.add(lProductLabel);                Dimension productLabelSize = lProductLabel.getPreferredSize();                pProduct.setMaximumSize(new Dimension(iWidth,                        productLabelSize.height));                pCenterPanel.add(pProduct);            }            pCenterPanel.add(Box.createVerticalStrut(10));                   }        pCenterPanel.add(Box.createVerticalStrut(10));        //TODO debut ajout bob& baloo        pCenterPanel.add(Box.createVerticalStrut(10));        // section guides        this.lGuidance.addAll(activity.getGuidanceType("Liste de controles"));        this.lGuidance.addAll(activity.getRole().getGuidanceType("Liste de controles"));                if (this.lGuidance.size() != 0)        {            // mise en place de la phrase de titre            JPanel pGuidanceTitlePanel = new JPanel(new FlowLayout(                    FlowLayout.LEFT));            JLabel lGuidancesTitleLabel = new JLabel("");            lGuidancesTitleLabel = new JLabel(LanguagesManager.getInstance()                    .getString("CheckListLabel"), SwingConstants.LEFT);            lGuidancesTitleLabel.setBackground(Color.WHITE);            pGuidanceTitlePanel.setBackground(Color.WHITE);            pGuidanceTitlePanel.add(lGuidancesTitleLabel);            Dimension toolTitleLabelSize = lGuidancesTitleLabel                    .getPreferredSize();            pGuidanceTitlePanel.setMaximumSize(new Dimension(iWidth,                    toolTitleLabelSize.height));            pCenterPanel.add(pGuidanceTitlePanel);            pCenterPanel.add(Box.createVerticalStrut(10));                        // mise en place des guides (1 ligne par produit)            for (Guidance guidance : this.lGuidance)            {                JPanel pGuidance = new JPanel(new FlowLayout(FlowLayout.LEFT));                pGuidance.add(Box.createHorizontalStrut(15));                JLabel lGuidanceLabel;                try                {                    lGuidanceLabel = new JLabel(guidance.getName(),                            ModelResourcesManager.getInstance().getSmallIcon(                                    guidance), SwingConstants.LEFT);                    lGuidanceLabel.addMouseListener( new MouseAdapter()                    {                       public void mouseEntered(MouseEvent e)                       {                                                    JLabel ltemp;                           ltemp =  (JLabel)e.getSource();                           ltemp.setForeground(Color.blue);                       }                        public void mouseExited(MouseEvent e)                       {                            JLabel ltemp;                            ltemp =  (JLabel)e.getSource();                            ltemp.setForeground(Color.black);                       }                                        });                    lGuidanceLabel.addMouseListener(new MouseAdapter()                    {                        public void mouseClicked(MouseEvent e)                        {                            if (e.getClickCount() == 2)                            {                                JLabel jLabelSource = (JLabel) e.getSource();                                Guidance guidance1;                                Iterator it  = EndCheckPanel.this.lGuidance.iterator();                                boolean trouve = false;                                while (it.hasNext() && !trouve)                                {                                        guidance1 = (Guidance)it.next();                                    if (jLabelSource.getText() == guidance1.getName())                                    {                                        	trouve = true;                                    	ModelResourcesManager                                        .getInstance()                                        .launchContentFile(guidance1);                                    }                                }                             }                         }                                });                }                catch (Exception e2)                {                    // initialiser le label mais sans l'ic?ne                    lGuidanceLabel = new JLabel(guidance.getName(),                            SwingConstants.LEFT);                }                lGuidanceLabel.setBackground(Color.WHITE);                Font fontTool = pGuidanceTitlePanel.getFont();                lGuidanceLabel.setFont(fontTool.deriveFont(Font.PLAIN));                pGuidance.add(lGuidanceLabel);                pGuidance.setBackground(Color.WHITE);                Dimension toolLabelSize = lGuidanceLabel.getPreferredSize();                pGuidance.setMaximumSize(new Dimension(iWidth,                        toolLabelSize.height));                pCenterPanel.add(pGuidance);            }        }                //TODO fin modif bob&baloo                        this.setBackground(Color.WHITE);        pCenterPanel.setBackground(Color.WHITE);        pCenterPanel.add(Box.createVerticalGlue());        this.add(pCenterPanel);        this.setViewportView(pCenterPanel);    }