作者theaky (@______@)
看板java
标题[问题] applet showDocument
时间Thu Aug 17 21:22:33 2006
最近在写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