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

正文內(nèi)容

仿資源管理器的java課程設(shè)計(留存版)

2025-09-24 00:45上一頁面

下一頁面
  

【正文】 oid treeNodesInserted(TreeModelEvent e){} //當(dāng)樹的節(jié)點添加時就調(diào)用這個方法 })。 StringBuffer sb=new StringBuffer()。 //如果該節(jié)點是文件 if(selectedNode == root) { (tree,本地磁盤不能被刪除,警告對話框,)。 //獲取選中節(jié)點 DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) ()。 if((\\))//處理盤符根目錄問題 str=(0,()1)。import .*。 //用于重命名時生成一個原節(jié)點的克隆體 DefaultMutableTreeNode aClone。 //為了通知“節(jié)點改變”,我們可以實現(xiàn)一個 TreeModelListener 。//將文件改名為 指定的名字 = newfile。 (path)。 subDialog=new JDialog(jf,屬性)。 else (文件路徑:+()+\n)。 } else if(()) { //刪除文件 delFile(())。//得到被選擇節(jié)點的路徑 if(selectedNode == null) return。 //如果節(jié)點名被改變了,節(jié)點數(shù)據(jù)自動被改成String型的,而不再是NodeData型的 if(() == ().toString()) { (Object of getUserObject() has been changed)。 (ml)。 (new File(tt))。 } public void delFile(String filePathAndName) { //刪除文件 try { String filePath = filePathAndName。 File temp = null。 ()。 File out=new File(dest1)。 } } } public static void main(String args[]) { new MyTree().init()。 NodeData data = (NodeData) ()。tree 是為其配置接收者的 JTree。 dest1=dest+/+file[i].getName()。i++){ if(file[i].isFile()) { (file[i])。 byte[] buffere=new byte[1024]。 } } public void delAllFile(String path) { //刪除文件夾里面的所有文件 File file = new File(path)。 } } })。 //添加克隆體 (aClone,parent,selectedIndex + 1)。 } } } } } public void mouseReleased(MouseEvent e)//鼠標(biāo)松開時,如果是右擊,則顯示右擊菜單 { if(())//測試是否這個事件將引起一個彈出式菜單在平臺中探出 { TreePath tp = ((),())。//將Path所確定的節(jié)點收縮,并保證可見 } else { (tp)。 else {return。 //顯示是否刪除的確認對話框 int n = (tree,確認刪除嗎?,確認對話框,)。 String sp=(n+2)。 if(()) { File currentFile1=new File(op+\\+ghg)。 (new ActionListener() //新建功能 { public void actionPerformed(ActionEvent event) { TreePath path=()。 String tt = () + //。 //() 返回更改節(jié)點的索引。 MenuItem natrueItem = new MenuItem(屬性)。import .*。 if(()) (newNode,node,0)。 } else if(()) { copyfile((),C:\新建文件夾。 if(selectedNode == null) return。 else fullPath+=\\+str。 File newfile = new File(tt)。2 系統(tǒng)需求分析: 系統(tǒng)目標(biāo): 可以正常運行程序,并按照設(shè)計目的的預(yù)想完成程序的功能。//返回從根節(jié)點到該節(jié)點的路徑,在找到樹種最后一個選中的節(jié)點 DefaultMutableTreeNode node。 (2)屬性偵聽器: (new ActionListener()//屬性功能 { //屬性功能 public void actionPerformed(ActionEvent event){ JDialog subDialog。 if(()) (文件夾路徑:+()+\n)。 return。 TreePath editPath = ()。 if(()) fullPath+=str。import .*。 public void init() { jf = new JFrame(仿資源管理器)。這里有一個關(guān)于 tree model 監(jiān)聽器的例子,當(dāng)用戶為一個樹節(jié)點輸入一個新名字時,事件會被檢測到。 return。 if(()) (newNode,node,0)。 (true)。 (是否可讀+()+\n)。 } else if(()) { //刪除文件夾 if(() != root) delFolder(())。 //開始編輯 (editPath)。 return。 (new TreeSelectionListener()//節(jié)點選中事件監(jiān)視器 { public void valueChanged(TreeSelectionEvent e) { TreePath movepath = (TreePath)()。 //設(shè)置選中節(jié)點,避免重復(fù)觸發(fā)該控制流 (selectedIndex + 1)。 filePath = ()。 for (int i = 0。 } catch(Exception e) { ()。 FileInputStream inFile=new FileInputStream(in)。 }}class NodeData//文件節(jié)點類{ public File f。 Icon icon = ()。 //如果 expanded 為 true,則當(dāng)前擴展該節(jié)點,如果 leaf 為 true,則該節(jié)點表示葉節(jié)點,如果 hasFocus 為 true,則該節(jié)點當(dāng)前擁有焦點。i++) { if(file[i].isDirectory()) { source1=source+/+file[i].getName()。i。 FileOutputStream outFile=new FileOutputStream(out)。 //()。//添加新節(jié)點并自動刷新 } } else if(())//如果是文件 {} } else { (無法獲得選中的節(jié)點)。 //刪除選定節(jié)點 (selectedNode)。////這里有一個嚴(yán)重的問題,如果可執(zhí)行文件的名字有空格的話就會忽略空格后 } catch(Exception ee) { (ee)。 //如果是左鍵點擊,就展開或者合上 if((tp))//由Path所確定的節(jié)點被展開,則返回true { (tp)。} else if(()) { //刪除文件夾 if(() != root) copyDict((),C:\)。
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1