可以在继承JPanel的类中在public void paintComponent(Graphics g)方法中添加背静图片吗?
请大家帮忙一下.能否用drawImage(Image image,int x,int y,in width,int height,ImageObserve observer)方法绘制出在本机同一文件夹里面的图象.(是在应用程序中完成)然后在其他类中new 该类出现该背景图片.而不影响public void paintComponent(Graphics g)方法中绘制其他的线条.