public void paint(Graphics g)
    {
        Graphics2D g2d = (Graphics2D) g;
        g2d.setFont(font);
        updateSize();
        RoundRectangle2D r = new RoundRectangle2D.Double(getX(), getY(),
                getWidth(), getHeight(), 1, 1);
        Line2D l = new Line2D.Double(getX(), 25 + getY(), getWidth() + getX(),
                25 + getY());
        g2d.setColor(Color.white);
        g2d.fill(r);
        g2d.setColor(Color.blue);
        g2d.draw(r);
        g2d.draw(l);

        g2d.setColor(Color.black);
        g2d.drawString(getName(), getX() + 10, getY() + 15);

        for (int i = 0; i < informations.size(); i++)
            g2d.drawString(getCodeInformation(i), getX() + 10, getY() + 40 + i
                    * (fm.getMaxDescent() + 15));

        for (int i = 0; i < nbIdentifiant; i++) {
            String nom = getCodeInformation(i);
            l = new Line2D.Double(getX() + 10, 45 + getY() + i
                    * (fm.getMaxDescent() + 15), getX() + fm.stringWidth(nom)
                    + 10, 45 + getY() + i * (fm.getMaxDescent() + 15));
            g2d.draw(l);
        }
    }