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

正文內容

軟件工程課程設計記事本課程設計(專業(yè)版)

2025-01-05 09:21上一頁面

下一頁面
  

【正文】 } } })。 (findhelpitem)。 (360, 100)。 final JButton cancel = new JButton(取消 )。 MenuItem coloritem = new MenuItem(字體顏色( C) )。 (false)。 final String text = ()。 final JLabel tihuan = new JLabel(請輸入要替換的字符串 : )。 } for (。 JLabel find = new JLabel(請輸入字符串 :)。 StringSelection selection = new StringSelection(text)。 (fanxiangitem)。 MenuItem nextitem = new MenuItem(查找下一個( N) )。 MenuItem cutitem = new MenuItem(剪切( T) )。// 彈出保存窗口 if (bcf == ) { try { // 保存文件 BufferedWriter bfw = new BufferedWriter(new FileWriter( new File(() .getAbsolutePath() + .txt)))。 if (()) {// 沒有路徑時,就另存為 JFileChooser jfc = new JFileChooser()。 } catch (IOException e1) { ()。 // filePath = // ()+().getName()。 if (result == ) {// 不保存 ()。 (new MenuShortcut(, false))。 Menu helpmenu = new Menu(幫助( H) )。 Clipboard clipboard = ()。 import 。 import 。 9 設計圖 用例圖 圖 5 類圖 圖 6 10 時序圖 圖 7 11 圖 8 12 活動圖 圖 9 import 。如果修改過,先彈出提示保存對話框,提示用戶是否保存,如果選擇“是”,先保存當前文本內容,再新建一個空文本文檔。 功能 需求 新建、 打開、保存、另存為、剪切、復制、粘貼、刪除等記事本常規(guī)操作 其他需求 除了常規(guī)操作以外,我們還有些東西需要添加進去,這里面我們包括字體顏色,還有查找方面的操作,對于整個記事本,我們還會添加我們記事本的作者,和相關信息。 復制模塊的詳細設計 打開一個文本文檔,當用戶選擇編輯菜單或右鍵彈出菜單中的復制操作后,判斷一個文本是否被選中,若已選中,將選中的文字傳輸到系統(tǒng)剪切板中,否則不進行任何操作。 import 。 import 。 private String filePath = 。 Menu editmenu = new Menu(編輯( E) )。 (new MenuShortcut(, false))。 (exititem)。 // (filter)。 } catch (FileNotFoundException e1) { ()。 // } // } // } FileDialog dialog = new FileDialog(new JFrame(), 保存 ...., )。 } } } })。 // 創(chuàng)建編輯菜單上的各個菜單項并添加到菜單上 MenuItem undoitem = new MenuItem(撤銷( U) )。 MenuItem finditem = new MenuItem(查找( F) )。 (allitem)。 } else { (, (), ())。 } })。 int len = ()。 // 查找下一個菜單項的功能實現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { } })。 (jtf1)。 } } // 若找不到待查字符串,則將光標置于末尾 (end)。 (worditem)。 final JComboBox zx = new JComboBox(faceString)。 (new ActionListener() {// 取消 public void actionPerformed(ActionEvent e) { (true)。 (false)。 // 關閉程序事件 28 (new WindowAdapter() { // 程序關閉時的方法 public void windowClosing(WindowEvent e) { int option = (null, 您確定關閉嗎? , 關閉提示 ...., , )。 在前期,我們現(xiàn)在網絡上查 找了資料,然后進行了一系列的組間討論,我們討論了這個課程設計到底要做什么,怎么做,確定了問題,對問題進行了可行性分析,之后又進行需求分析。 MenuItem aboutboxitem = new MenuItem(關于記事本( A) )。// 禁止放大窗體 } })。 (sure)。 // 字體菜單項的功能實現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { final JFrame ztsz = new JFrame(字體設置 ...)。 // 轉到菜單項的功能實現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { } })。 (new ActionListener() { public void actionPerformed(ActionEvent e) { if (().equals(())) { (str2, (), ())。 JTextField jtf2 = new JTextField(10)。 (start + len)。 22 (null)。 // 粘貼菜單項的功能實現(xiàn) (new ActionListener() { public void actionPerformed(ActionEvent e) { Transferable contents = (this)。 (chieseitem)。 MenuItem replaceitem = new MenuItem(替換( R) )。 MenuItem copyitem = new MenuItem(復制( C) )。// 向文件寫出數據 ()。 filePath = ().getAbsolutePath()。 17 // (true)。 (true)。 if (bcf == ) { try { // 保存文件 BufferedWriter bfw = new BufferedWriter( new FileWriter(new File(jfc .getSelectedFile() .getAbsolutePath() + .txt)))。 (new MenuShortcut(, false))。 (formatmenu)。 (100, 100, 500, 500)。 import 。 import 。 import 。如果未修改過,則打開選擇的文本文件。為此,我們成了一個課程小組,經過小組成的商討之后,我們決定以“日歷記事本”為設 題材,借此鞏固加深我們對 Java 的了解。如果選擇“否”,直接退出程序。 import 。 import 。 import 。 (true)。 (new MenuShortcut(, false))。 ()。// 新建文本文件 } } } } })。 String str = null。 // } // catch(IOException e1){ // ()。// 向文件寫出數據 ()。 int option = (null, 您確定要退出嗎? , 退出提示 ...., , , null, options, optio
點擊復制文檔內容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1