applet中怎么显示不出图片?高手赐教
//代码如下:
import javax.swing.*;
import java.awt.*;
public class AddUGP extends JApplet
{
JLabel labelObj;
JPanel panelObj;
public void init()
{
Icon UGP=new ImageIcon( ".\\flog.gif "); //这里添加图片
labelObj=new JLabel(UGP);
panelObj=new JPanel();
panelObj.add(labelObj);
}
}
------解决方案--------------------路径