[J2SE]Japplet 不能用 icon?
就是japplet 的button扭 上有圖案時,我開瀏覽器看japplet,就無法顯示.
以下是程式馬:
public class Imageicon extends JApplet{
Icon cion = new ImageIcon("T2.gif");
public void init(){
this.getContentPane().add(new JButton(cion));
}
public void paint(Graphics g){
}
}
請問大大們該怎麼在applet上的扭顯示出圖片.雖然在編譯的applet環境下可以看到圖片,
但瀏覽器去看applet時,就不行了.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.195.208
推
03/12 16:44, , 1F
03/12 16:44, 1F
→
03/12 18:08, , 2F
03/12 18:08, 2F
→
03/12 18:10, , 3F
03/12 18:10, 3F
→
03/12 19:31, , 4F
03/12 19:31, 4F
推
03/12 21:37, , 5F
03/12 21:37, 5F