144 获得图像: getImage Applet 方法
Applet 类提供了一个方法 getImage, 它从一个 web 服务器中取回一个图像并生成 Image 类的一个实例.
Image img = getImage(new URL("http://www.tc.com/image.gif"));
Another form of getImage retrieves the image file relative to the directory of the HTML or the directory of the java code.
Image img = getImage(getDocumentBase(), "images/image.gif");
Image img = getImage(getCodeBase(), "images/image.gif");
Copyright: NPACT