Painting to JPanel?

Hi all,

Sorry for the newbi question but i am stuck.

I am creating a RPG and i am using tiles. Any way i paint the tiles to a Graphics Object which is created by bi.createGraphics().
I also have a buffered image (bi).

This is for the Double Buffering

When i call paint component in my class which extends JPanel it just pains black even though on my out put screen it says it has paint all the tile to the offscreen and then called paint. And then says painted.
Whats happening.

Any help would be great.

paint() on a component is not meant to be called by yourself, but by Swing/AWT.

Overload paint() to drawImage() your BufferImage onto the Graphics you receive there. If you manually want to do paint it now, call repaint.