Re: [問題] 執行 Applet 的時候

看板java作者 (痞子軍團團長)時間19年前 (2006/05/17 20:14), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
※ 引述《mike0226 (Mr.Mike Only You)》之銘言: : 在開啟有 Applet 的網頁時 : 讀完後網頁就會自動關閉 : 不知大家有遇過這樣的情形嗎? : 我的 Applet 是讀圖檔 : 是不是表示讀圖檔失敗?語法錯誤? : 還是有其他的原因呢? 感謝... 這... 感覺起來程式碼不是你自己寫的 當然,我不確定那行程式會不會導致網頁關閉 (咪的,我壓根不想寫 JApplet) 不過,在那裡,我的確聞到一些怪味道... [茶] : java-- : public void init() { : if (filename == null) { : try { : file1=this.getParameter("file1"); : file2=this.getParameter("file2"); : file3=this.getParameter("file3"); : file4=this.getParameter("file4"); : filename1 = new URL(getCodeBase()+"Component/1/"+file1); : filename2 = new URL(getCodeBase()+"Component/2/"+file2); : filename3 = new URL(getCodeBase()+"Component/3/"+file3); : filename4 = new URL(getCodeBase()+"Component/4/"+file4); : } : catch (MalformedURLException e) { : System.err.println(e); : System.exit(1); ^^^^^^^^^^^^^^^ : } : } -- 侃侃長論鮮窒礙 網站:http://www.psmonkey.idv.tw 眾目睽睽無心顫 個人版:telnet://legend.twbbs.org 煢居少聊常人事 殺頭容易告白難 歡迎參觀 Java 版(@ptt.cc)精華區 \囧/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.204.16.17
文章代碼(AID): #14QnElaT (java)
文章代碼(AID): #14QnElaT (java)