当前页面: 开发资料首页 → Java 专题 → applet打包
applet打包
摘要: applet打包
</td>
</tr>
<tr>
<td width="517" height="35" valign="top" class="ArticleTeitle">
写Applet时,图像和其它资源文件要用如下方法载入:
ClassLoader loader=this.getClass().getClassLoader();
//image = this.getImage(this.getDocumentBase(), this.getParameter("image"));
image = this.getImage(loader.getResource(getParameter("image")));
C:\java>jar cf applet.jar java_parts.gif chirp.au chen/applet