public HtmlWindow(String text, int width,
            int height, boolean visible, boolean closeAfter2sec)
    {
    	super(Main.analyseFrame);
    	
        editor = new JEditorPane("text/html", text) {
            public void paintComponent(Graphics g)
            {
                Graphics2D g2d = (Graphics2D) g;
                g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                        RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
                super.paintComponent(g2d);
            }
        };
        editor.setEditable(false);
        editor.setBackground(Constantes.COULEUR_FOND_POPUP) ;
        initAction();
        
        Container c = this.getContentPane();
        c.setLayout(new BorderLayout());
        JPanel p = new JPanel();
        p.setLayout(new BorderLayout());
        p.setBackground(Constantes.COULEUR_FOND_POPUP) ;
        p.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));

        p.add(BorderLayout.CENTER, new JPanel(new BorderLayout()) {
            {
                this.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
                this.add(BorderLayout.CENTER, new JScrollPane(editor) {
                    {
                        JViewport vp = this.getViewport();
                        vp.add(editor);
                    }
                });
            }
        });
        p.add(BorderLayout.SOUTH, MyPanelFactory.createBottomWhitePanel(new JButton(close)));
        c.add(p);

        //this.setTitle(title);
        this.setSize(width, height);
        
        if(closeAfter2sec)
        	this.setLocation(Main.analyseFrame.getX() + Main.analyseFrame.getWidth() - width, Main.analyseFrame.getY() + Main.analyseFrame.getHeight() - height);
        else
            GUIUtilities.centerComponent(this);
        
        this.setVisible(visible);
        
        if(closeAfter2sec)
            closeAfter2sec();
    }