freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于java語言的瀏覽器設(shè)計(jì)與實(shí)現(xiàn)-資料下載頁

2025-06-27 18:13本頁面
  

【正文】 ewURL)。 }} catch (IOException e1) { ()。 } } })。 JPanel pp = new JPanel()。// 設(shè)置顏色 ()。 (new FlowLayout())。 (btn2)。 (addressTex)。 (btn1)。 (pp,)。 //狀態(tài)欄 statusLbl = new JLabel(status: )。 (statusLbl,)。 // 瀏覽器體部 centerPane = new JScrollPane()。 // 顯示區(qū)域 JViewport view = ()。 // 內(nèi)容顯示 textArea = new JEditorPane()。 // 監(jiān)聽超鏈接,使其生效 (new HyperlinkListener(){ public void hyperlinkUpdate(HyperlinkEvent e) { if (() == ) { JEditorPane pane = (JEditorPane) ()。 if (e instanceof HTMLFrameHyperlinkEvent) { HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e。 HTMLDocument doc = (HTMLDocument)()。 (evt)。 } else { try { (())。 } catch (Throwable t) { ()。 } } } } })。 ()。 // 設(shè)置不可寫操作 (false)。 (textArea)。 (centerPane)。 } // 撤銷按鈕 class UndoActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { (true)。 int index=(())。 if(index1=0){ String preURL=(String)(index1)。 (preURL)。 if(((preURL))==0){ (false)。 } try { URL url=new URL(preURL)。 (url)。 } catch (IOException e1) { ()。 } } } } // 選擇打開文件 class MyFilenameChooser implements FilenameFilter{ public boolean accept(File dir,String name){ return (html)。 } }// 打開文件 public void openFile(String fileName){ try { URL url=new URL(file+:///+fileName)。 (())。 } catch (Exception e1) { (null,打開失敗!,?openopen打開文件,)。 } } // 打開文件 class OpenFileActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { FileDialog fd=new FileDialog(new Frame(), Open a file,)。 FilenameFilter ff=new MyFilenameChooser()。 (true)。 String name=()。 openFile(()+name)。 } } public boolean filter(String strURL){ FileReader fr=null。 BufferedReader br=null。 boolean flag=true。 try { br=new BufferedReader(fr)。 String temp=null。 while((temp=())!=null){ if((strURL)) flag=false。 else flag=true。 } return flag。 } catch (Exception e) { ()。 return false。 } } // 停止按鈕 class QuitActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { (0)。 } } public void go(){ (true)。 } public static void main(String[] args){ new Browser(web 瀏覽器).go()。 }}21 頁 共 21頁
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1