innerPane.setPreferredSize(globalPane.getSize());
    public StepPanel(Step stepToPresent, int rang, int total)    {        super();        // panneaux global ncessaire pour des contrainte de prsentation        JPanel globalPane = new JPanel();        globalPane.setLayout(new BorderLayout());        globalPane.setBackground(Color.WHITE);        int globalPaneBorderSize = 7;        globalPane.add(Box.createVerticalStrut(globalPaneBorderSize),                BorderLayout.NORTH);        globalPane.add(Box.createHorizontalStrut(globalPaneBorderSize),                BorderLayout.EAST);        globalPane.add(Box.createHorizontalStrut(globalPaneBorderSize),                BorderLayout.WEST);        // panneaux interne        JPanel innerPane = new JPanel();        innerPane.setLayout(new BorderLayout());        innerPane.setOpaque(false);        int innerPaneBorderSize = 7;        innerPane.add(Box.createHorizontalStrut(innerPaneBorderSize),                BorderLayout.EAST);        innerPane.add(Box.createHorizontalStrut(innerPaneBorderSize),                BorderLayout.WEST);        globalPane.add(innerPane, BorderLayout.CENTER);        // entete du descriptif de l'tape        String title = "<html><u>"            + LanguagesManager.getInstance().getString(                    "stepPresentation");        if (stepToPresent.getName() != null)        {            String name = stepToPresent.getName();            title += " " + name ;        }        title+= " (" + rang+ "/" + total + ") : </u></html>";        this.header = new JLabel(title);        innerPane.add(this.header, BorderLayout.NORTH);            // corps du descriptif de l'tape        this.body = new JEditorPane();        this.body.setEditable(false);        this.body.setOpaque(false);        this.body.setContentType("text/html");        String message;        if (stepToPresent.getComment() == null)        {            message = LanguagesManager.getInstance().getString("noComment");        }        else        {            message = stepToPresent.getComment();        }        this.body.setText(message);        innerPane.add(this.body, BorderLayout.CENTER);        // ajout du globalpane dans le viewportview        this.setViewportView(globalPane);    }