i am trying to add a bmp image file to a panel but i dont no how. i have been trying a few different code but nothing seems to be working for me.

ImageCanvas imageCanvas = new ImageCanvas(this,bi);
    visibleArea.add(imageCanvas, BorderLayout.CENTER);

this code makes the area where th image needs to be but i dont no how to add the file here.

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.