[問題] applet showDocument
最近在寫applet的東西
用到這個method
getAppletContext().showDocument()
不過說也奇怪...
參考以下範例
class A extends JApplet{
....
public void fun1(){
try{
getAppletContext().showDocument(new URL("i am URL"))
}
catch(IOException){
System.out.println("I am IOException");
}
}
public void fun2(){
//call other class(maybe class B) with same method implementation about fun1
//但是這個函式在showDocument的時候卻不能用
}
}
--
得到以下結論...
getAppletContext().showDocument() 這個只能用在applet這個tag 裡面的code 所放的
class 裡面..
搞不透..有大大有相關方面的解釋嗎..thx
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.143.224.228