what is problem with code while displaying image.........
i have overidden the JPanel paintComponent method in a thread.
paramPanel is a JPanel in main interface on which i have to show the image.
paramPanel is passed as a parameter to thread constructor
as
public Threading(JPanel imgPnl)
{
paramPanel = imgPnl;
}
and then it is used as following code to show image in jpanel on main interface.
but this code is not working . plz any body give sugestion about it
JPaneljPnl =new JPanel()
{
publicvoid paintComponent(Graphics g)
{
g.drawImage("c:\\form.jpg",15,15,600,400,jPnl);
paramPanel.add(jPnl);
paramPanel.repaint();
}
};

