Загрузка картинки в апплет (JApplet)
import java.awt.*; import javax.swing.*; import java.net.URL; public class Test extends JApplet { public void init () { Container mainContent; JLabel text; ImageIcon icon=null; mainContent = getContentPane(); try { URL url= new URL(getCodeBase()+"construction.gif"); icon = new ImageIcon(url); } catch(Exception e){}; text = new JLabel ("Under construction", icon, JLabel.CENTER); mainContent.add(text); } }