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

正文內(nèi)容

軟件工程課程設(shè)計(jì)記事本課程設(shè)計(jì)-在線瀏覽

2025-01-13 09:21本頁面
  

【正文】 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 private TextArea content。// 先讓路徑為空 Color color = 。 Clipboard clipboard = ()。 ()。 (true)。 // 創(chuàng)建菜單欄 MenuBar menu = new MenuBar()。 // 創(chuàng)建并添加文本框 content = new TextArea(, 50, 50, )。 (true)。 // 菜單欄添加內(nèi)容 Menu filemenu = new Menu(文件( F) )。 Menu formatmenu = new Menu(格式( O) )。 Menu helpmenu = new Menu(幫助( H) )。 (editmenu)。 (viewmenu)。 // 創(chuàng)建文件菜單上的各個(gè)菜單項(xiàng)并添加到菜單上 MenuItem newitem = new MenuItem(新建( N) )。 (newitem)。 (new MenuShortcut(, false))。 MenuItem saveitem = new MenuItem(保存( S) )。 (saveitem)。 (new MenuShortcut(, false))。 MenuItem setitem = new MenuItem(頁面設(shè)置( U) )。 (setitem)。 MenuItem printitem = new MenuItem(打印( P) )。 (printitem)。 ()。 15 (new MenuShortcut(, false))。 // 添加監(jiān)聽器來 實(shí)現(xiàn)文件菜單上的各個(gè)菜單項(xiàng)的功能 // 新建菜單項(xiàng)的功能實(shí)現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { String con = ()。 if (result == ) {// 不保存 ()。// 用于選擇保存路徑的文件名 int bcf = (jf)。 filePath = () .getAbsolutePath() + .txt。// 向文件寫 出數(shù)據(jù) ()。// 關(guān)閉輸出流 } catch (IOException ex) { (()).log( , null, ex)。// 新建文本文件 } } } } })。 // FileNameExtensionFilter filter = new // FileNameExtensionFilter(*.txt,txt)。 // (true)。 // filePath = // ()+().getName()。 FileDialog dialog = new FileDialog(new JFrame(), 打開 ...., )。 filePath = () + ()。 File file = new File(filePath)。 StringBuilder sb = new StringBuilder()。 String str = null。 } (())。 } catch (IOException e1) { ()。 } catch (IOException e1) { ()。 // 保存菜單項(xiàng)的功能實(shí)現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { // FileDialog dialog = new FileDialog(new // JFrame(),保存 ....,)。 // filePath = () + ()。 // BufferedWriter bw = null。 // (())。 // } // catch(IOException e1){ // ()。 // } // catch(IOException e1){ // ()。 (true)。 if (()) {// 沒有路徑時(shí),就另存為 JFileChooser jfc = new JFileChooser()。// 彈出保存窗口 if (bcf == ) { try { // 保存文件 BufferedWriter bfw = new BufferedWriter( new FileWriter(new File(jfc .getSelectedFile() .getAbsolutePath() + .txt)))。 (())。 ()。 18 } } } else {// 路徑不為空時(shí),保存在原來的路徑下 try { // 保存文件 BufferedWriter bfw = new BufferedWriter(new FileWriter( new File(filePath)))。// 向文件寫出數(shù)據(jù) ()。// 關(guān)閉輸出流 } catch (IOException ex) { (()).log( , null, ex)。 // 另存為菜單項(xiàng)的功能實(shí)現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { JFileChooser jfc = new JFileChooser()。// 彈出保存窗口 if (bcf == ) { try { // 保存文件 BufferedWriter bfw = new BufferedWriter(new FileWriter( new File(() .getAbsolutePath() + .txt)))。 (())。 ()。 } } } })。 // 打印菜單項(xiàng)的功能實(shí)現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { } })。 int option = (null, 您確定要退出嗎? , 退出提示 ...., , , null, options, options[0])。 } } })。 (new MenuShortcut(, false))。 MenuItem cutitem = new MenuItem(剪切( T) )。 (cutitem)。 (new MenuShortcut(, false))。 MenuItem pasteitem = new MenuItem(粘貼( P) )。 (pasteitem)。 (new MenuShortcut(, false))。 ()。 (new MenuShortcut(, false))。 MenuItem nextitem = new MenuItem(查找下一個(gè)( N) )。 (nextitem)。 (new MenuShortcut(, false))。 MenuItem turntoitem = new MenuItem(轉(zhuǎn)到( G) )。 (turntoitem)。 // 復(fù)選菜單項(xiàng) Menu choicemenu = new Menu(選擇 (C))。 (new MenuShortcut(, false))。 MenuItem fanxiangitem = new MenuItem(反向選擇 (B))。 (fanxiangitem)。 (new MenuShortcut(, false))。 (choicemenu)。 (new MenuShortcut(, false))。 // 添加監(jiān)聽器來實(shí)現(xiàn)編輯菜單上的各個(gè)菜單項(xiàng)的功能 // 撤銷菜單項(xiàng)的功能實(shí)現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { } })。 StringSelection selection = new StringSelection(text)。 if (() == 0) { return。 } } })。 StringSelection selection = new StringSelection(text)。 } })。 St
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1