Re: [問題] 執行 Applet 的時候
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 4 篇):