歡迎來到裝配圖網(wǎng)! | 幫助中心 裝配圖網(wǎng)zhuangpeitu.com!
裝配圖網(wǎng)
ImageVerifierCode 換一換
首頁 裝配圖網(wǎng) > 資源分類 > DOC文檔下載  

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告(簡易英漢詞典系統(tǒng))

  • 資源ID:30158287       資源大?。?span id="k6bomem" class="font-tahoma">830.50KB        全文頁數(shù):42頁
  • 資源格式: DOC        下載積分:15積分
快捷下載 游客一鍵下載
會員登錄下載
微信登錄下載
三方登錄下載: 微信開放平臺登錄 支付寶登錄   QQ登錄   微博登錄  
二維碼
微信掃一掃登錄
下載資源需要15積分
郵箱/手機(jī):
溫馨提示:
用戶名和密碼都是您填寫的郵箱或者手機(jī)號,方便查詢和重復(fù)下載(系統(tǒng)自動生成)
支付方式: 支付寶    微信支付   
驗(yàn)證碼:   換一換

 
賬號:
密碼:
驗(yàn)證碼:   換一換
  忘記密碼?
    
友情提示
2、PDF文件下載后,可能會被瀏覽器默認(rèn)打開,此種情況可以點(diǎn)擊瀏覽器菜單,保存網(wǎng)頁到桌面,就可以正常下載了。
3、本站不支持迅雷下載,請使用電腦自帶的IE瀏覽器,或者360瀏覽器、谷歌瀏覽器下載即可。
4、本站資源下載后的文檔和圖紙-無水印,預(yù)覽文檔經(jīng)過壓縮,下載后原文更清晰。
5、試題試卷類文檔,如果標(biāo)題沒有明確說明有答案則都視為沒有答案,請知曉。

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告(簡易英漢詞典系統(tǒng))

廣西大學(xué)課程設(shè)計(jì)報(bào)告課程: 數(shù)據(jù)結(jié)構(gòu)題目:簡易英漢詞典系統(tǒng)學(xué) 院:_計(jì)算機(jī)與電子信息學(xué)院_ 專 業(yè):_計(jì)網(wǎng)類_ 班 級:_計(jì)網(wǎng)071_ _ _ 學(xué) 號: 0707100103 學(xué)生姓名: 藍(lán)冠恒 指導(dǎo)教師:_ _ 二九 年 四 月一、實(shí)驗(yàn)?zāi)康暮鸵蟆緦?shí)驗(yàn)?zāi)康摹吭O(shè)計(jì)一個簡易英漢詞典系統(tǒng),實(shí)現(xiàn)基本的單詞檢索功能,即輸入英文單詞則系統(tǒng)輸出其漢語,反之亦然;并能夠進(jìn)行基本的詞典維護(hù)操作,包括插入和刪除,要求按英語的詞典順序排列單詞?!驹O(shè)計(jì)要求】(1)使用圖形化界面。(2)建立英語詞匯表,輸入為小寫字母時(shí)為合法輸入。(3)每個詞條應(yīng)包含單詞的英語形式、漢語釋義、發(fā)音等基本信息。二、設(shè)計(jì)概要:1、根據(jù)實(shí)驗(yàn)要求,與及所了解的數(shù)據(jù)類型相關(guān)知識,定義了如下數(shù)據(jù)類型:鏈接數(shù)據(jù)庫聲明的變量:Connection connection = null;Statement statement = null;ResultSet Result = null;聲明全局變量:String newWord, pronunciations, indexWord="", deleteWord, searchEnglish, searchChinese,isSound;它們分別是:新增單詞、新單詞音標(biāo)、引擎詞、刪除詞、查找的英文、查找的漢語、判斷音頻是否存在。2、實(shí)驗(yàn)功能所定義的各種按鈕、文本框、選擇框和列表框:取消刪除功能按鈕:JButton deleteCancelButton = new JButton();英漢互譯面板上的發(fā)音按鈕:JButton sound = new JButton();瀏覽詞庫面板上的發(fā)音按鈕:JButton scanSoundButton = new JButton();添加單詞的按鈕:JButton addOkJButton = new JButton();取消添加功能的按鈕:JButton addCancelButton = new JButton();刪除詞庫單詞信息按鈕:JButton deleteOkButton = new JButton();瀏覽詞庫按鈕:JButton scanButton = new JButton();要查找的英文或漢語的文本框輸入框:JTextField inputSearchWord = new JTextField();新增單詞文本輸入框:JTextField inputNewWord = new JTextField();新增單詞音標(biāo)輸入框:JTextField pronunciation = new JTextField();新增單詞釋義輸入框:JTextField newWordChinese = new JTextField();新增單詞過去式輸入框:JTextField newWordPreterite = new JTextField();新增單詞現(xiàn)在進(jìn)行時(shí)態(tài)輸入框:JTextField newWordModernism = new JTextField();要刪除的單詞輸入框:JTextField inputDeleteWord = new JTextField();新增單詞詞性復(fù)選框:JComboBox newWordClass = new JComboBox();列出要查找的詞的記錄信息的多行文本框:TextArea outputSearchEnglish = new TextArea();列出要刪除的單詞的記錄信息的多行文本框:TextArea deleteWordChinese = new TextArea();列出瀏覽時(shí)需瀏覽單詞信息的多行文本框: TextArea scanOutput = new TextArea();DefaultListModel model = new DefaultListModel(); 列出所查找的英文或漢語對應(yīng)的單詞的列表框:JList listSearchEnglish = new JList(model);列出備選英標(biāo)的列表框:JList pronunciationJList = new JList(listItem);列出可能且可以被刪除的單詞的列表框:JList deleteJList = new JList(model);列出詞庫所有單詞的列表框: JList scanWordJList = new JList(model);3、實(shí)現(xiàn)功能所定義的各種函數(shù):1)public static String Return(String str) 將數(shù)據(jù)庫里的單詞的音標(biāo)進(jìn)行還原。因?yàn)橛行┮魳?biāo)不能正確存入數(shù)據(jù)庫,只能以其它字符代替,讀取時(shí)再還原。2)public void Play(String word) 播放單詞word的音頻。3)public void inputSearch_caretUpdate(CaretEvent e) 當(dāng)inputSearch(注:要查找的詞)輸入框值改變時(shí),listSearchEnglish(注:列出查找結(jié)果)列表框和outputSearchEnglish(注:寫出單詞信息)文本輸出框被清空,取inputSearch輸入框值賦給indexWord,如果indexWord不為空,連接數(shù)據(jù)庫;再判斷要查找的是英語,還是漢語,根據(jù)判斷結(jié)果進(jìn)行查找,并將結(jié)果集按升序排列,輸出到listSearchEnglish列表框4)public void listSearchEnglish_mouseClicked(MouseEvent me) 當(dāng)鼠標(biāo)單擊listSearchEnglish列表框時(shí),取所選選項(xiàng)的值賦給變量searchEnglish,去掉其兩端空格,outputSearchEnglish文本輸出框被清空,發(fā)音按鈕變成灰白色,從數(shù)據(jù)庫讀取要查找的單詞,將其音標(biāo)進(jìn)行還原,將單詞信息輸出到outputSearchEnglish文本框,如果可以發(fā)音,發(fā)音按鈕變紅色,否則indexWord被賦給空值5)public void sound_actionPerformed(ActionEvent e) 如果查找單詞有音頻且查找詞不為空,則可發(fā)音,否則按鈕變?yōu)榛野咨?)public void inputNewWord_caretUpdate(CaretEvent e) 一旦輸入的新單詞字母不是小寫字母或空格時(shí),彈出提示框7)public void pronunciation_caretUpdate(CaretEvent e) 對輸入的音標(biāo)進(jìn)行處理,因?yàn)樽址鹵0254、u01DD、u00E6 存入數(shù)據(jù)庫時(shí)會變成?或出錯,所以用0、1、2、4分別代替他們,讀取時(shí)通過調(diào)用Return函數(shù)還原,且將音標(biāo)兩端和中間空格去掉8)public void pronunciationJList_mouseClicked(MouseEvent me) 當(dāng)在音標(biāo)選項(xiàng)列表單擊鼠標(biāo)選擇音標(biāo)時(shí),將所選音標(biāo)輸入音標(biāo)輸入框9)public void addOkJButton_actionPerformed(ActionEvent e) 讀取未讀取的輸入框的字符,去掉單詞、注釋各自兩端空格,并將去掉它們各自中間兩個或兩個以上的空格留一個空格,接著在數(shù)據(jù)庫查找添加的單詞是否已存在,若已存在,彈出提示框,不能再添加,否則向數(shù)據(jù)庫添加新單詞信息,最后清空所有輸入框10)public void addCancelButton_actionPerformed(ActionEvent e)點(diǎn)擊添加取消按鈕,新增面板所有輸入框被清空11)public void inputDeleteWord_caretUpdate(CaretEvent e)當(dāng)inputDeleteWord輸入框值改變時(shí),清空deleteJList列表框,讀取inputDeleteWord輸入框值賦給變量deleteWord,按模糊查找法查找以deleteWord的值開頭的所有單詞,按升序排列,并將他們輸出到deleteJList列表框12)public void deleteJList_mouseClicked(MouseEvent me) 當(dāng)在deleteJList列表框單擊選項(xiàng)時(shí),讀取選項(xiàng)值賦給deleteWord變量,并去掉其兩端空格,向inputDeleteWord輸入框輸入deleteWord變量值,接著從數(shù)據(jù)庫讀取要刪除的單詞的信息,如某屬性不為空,將其輸入到eleteWordChinese多行文本框13)public void deleteOkButton_actionPerformed(ActionEvent e) 單擊刪除按鈕,如果輸入框?yàn)榭?,則彈出提示框,否則從數(shù)據(jù)庫中刪除要刪除的單詞的所有記錄14)Public void deleteCancelButton_actionPerformed(ActionEvent e) 單擊取消按鈕,inputDeleteWord、deleteWordChinese都被清空15)public void scanButton_actionPerformed(ActionEvent e) 單擊瀏覽按鈕,scanWordJList列表框被清空,然后從數(shù)據(jù)庫讀取所有單詞,按升序排列;然后將所得結(jié)果集輸入到scanWordJList列表框16)public void scanWordJList_mouseClicked(MouseEvent me) 當(dāng)鼠標(biāo)單擊scanWordJList列表框時(shí),取所選選項(xiàng)的值賦給變量ndexWord,去掉其兩端空格,scanOutput文本框被清空,發(fā)音按鈕變成灰白色,從數(shù)據(jù)庫讀取要查找的單詞(indexWord的值),將其音標(biāo)進(jìn)行還原,將單詞信息輸出到scanOutput文本框,如果可以發(fā)音,發(fā)音按鈕變紅色,否則indexWord被賦給空值17)public void soundButton_actionPerformed(ActionEvent e) 如果查找單詞有音頻且查找詞不為空,則可發(fā)音,否則按鈕變?yōu)榛野咨⒊绦蚰K流程圖開始英漢互譯是否輸入?是否是英文查找英文查找漢譯列出找到的單詞單擊?列出單詞信息清空列表框和多行文本框是否找到顯錯錯誤添加詞匯輸入單詞?是否合法彈出提示信息是否選擇備選音標(biāo)寫入音標(biāo)輸入框單擊添加按鈕輸入單詞?彈出警告成功?顯示錯誤提示成功單擊取消按鈕清空所有輸入框是否已存在保存所有信息不能添加可否發(fā)音結(jié)束發(fā)音按鈕變紅結(jié)束YNYYNYYNNYNYYYNY單擊發(fā)音刪除詞匯輸入?模糊查找是否匹配列出找到的單詞單擊選擇?列出單詞信息并把單詞寫入輸入框點(diǎn)擊刪除按鈕是否有單詞彈出提示信息刪除該單詞點(diǎn)擊取消按鈕清空各框內(nèi)內(nèi)容瀏覽詞庫按升序列出詞庫單詞是否被單擊列出單詞信息可否發(fā)音發(fā)音按鈕變紅單擊瀏覽按鈕發(fā)音按鈕是否紅結(jié)束結(jié)束YNYNYYNNYYNY單擊發(fā)音四、具體程序設(shè)計(jì)代碼package languanhengdictionary;import java.awt.BorderLayout;import java.sql.*;import java.io.File;import java.io.IOException;import javax.sound.sampled.AudioSystem;import javax.sound.sampled.LineUnavailableException;import javax.sound.sampled.UnsupportedAudioFileException;import javax.sound.sampled.AudioInputStream;import javax.sound.sampled.AudioFormat;import javax.sound.sampled.SourceDataLine;import javax.sound.sampled.DataLine;import javax.swing.JFrame;import javax.swing.JTabbedPane;import java.awt.Rectangle;import javax.swing.JPanel;import javax.swing.JLabel;import java.awt.Font;import java.awt.Color;import javax.swing.JTextField;import javax.swing.JButton;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JTextArea;import java.awt.TextArea;import java.awt.Dimension;import java.awt.Choice;import java.awt.event.ItemEvent;import java.awt.event.ItemListener;import java.awt.Checkbox;import javax.swing.JComboBox;import javax.swing.JList;import javax.swing.JOptionPane;import java.awt.*;import javax.swing.JScrollPane;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;import javax.swing.DefaultListModel;import java.awt.event.HierarchyListener;import java.awt.event.HierarchyEvent;import javax.swing.event.CaretListener;import javax.swing.event.CaretEvent;import javax.swing.border.TitledBorder;import javax.swing.UIManager;import javax.swing.BorderFactory;import java.io.*;import javax.swing.border.Border;public class englishFrame extends JFrame Connection connection = null; Statement statement = null; ResultSet Result = null; public englishFrame() try jbInit(); catch (Exception exception) exception.printStackTrace(); private void jbInit() throws Exception getContentPane().setLayout(null); mainJP.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); mainJP.setForeground(new Color(0, 242, 118); mainJP.setBorder(titledBorder1); mainJP.setToolTipText(""); mainJP.setBounds(new Rectangle(2, 51, 543, 295); searchEnglishOrChineseJP.setLayout(null); addWordJP.setLayout(null); deleteJP.setLayout(null); scanStock.setLayout(null); jLabel2.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); jLabel2.setForeground(new Color(0, 180, 62); jLabel2.setText("輸入引擎詞"); jLabel2.setBounds(new Rectangle(8, 16, 106, 43); inputSearchWord.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); jScrollPane1.setBounds(new Rectangle(118, 60, 145, 178); listSearchEnglish.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); listSearchEnglish.setForeground(Color.blue); listSearchEnglish.setSelectionBackground(new Color(51, 255, 104); outputSearchEnglish.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); outputSearchEnglish.setBounds(new Rectangle(267, 59, 227, 179); jLabel4.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel4.setForeground(new Color(0, 180, 0); jLabel4.setText("新單詞"); jLabel4.setBounds(new Rectangle(6, 9, 81, 34); inputNewWord.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); inputNewWord.setBounds(new Rectangle(93, 11, 155, 34); jLabel5.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel5.setForeground(new Color(0, 159, 14); jLabel5.setText("發(fā) 音"); jLabel5.setBounds(new Rectangle(6, 118, 76, 33); jLabel6.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel6.setForeground(new Color(0, 173, 55); jLabel6.setText("詞 性"); jLabel6.setBounds(new Rectangle(7, 63, 81, 35); pronunciation.setFont(new java.awt.Font("Arial Unicode MS", Font.PLAIN,20); pronunciation.setBounds(new Rectangle(92, 119, 154, 36); newWordClass.setBounds(new Rectangle(95, 62, 154, 36); jScrollPane3.setBounds(new Rectangle(93, 156, 154, 79); jLabel7.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel7.setForeground(new Color(0, 208, 48); jLabel7.setText("注 釋"); jLabel7.setBounds(new Rectangle(267, 9, 72, 34); newWordChinese.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); newWordChinese.setBounds(new Rectangle(354, 11, 164, 34); jLabel8.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel8.setForeground(new Color(0, 187, 0); jLabel8.setToolTipText(""); jLabel8.setText("過去式"); jLabel8.setBounds(new Rectangle(264, 62, 77, 32); newWordPreterite.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); newWordPreterite.setBounds(new Rectangle(353, 61, 164, 36); jLabel9.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel9.setForeground(new Color(0, 187, 21); jLabel9.setText("現(xiàn)代式"); jLabel9.setBounds(new Rectangle(263, 122, 75, 31); newWordModernism.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); newWordModernism.setBounds(new Rectangle(353, 121, 163, 37); addOkJButton.setBounds(new Rectangle(261, 179, 83, 40); addOkJButton.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); addOkJButton.setText("確定"); addCancelButton.setBounds(new Rectangle(407, 182, 83, 37); addCancelButton.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); addCancelButton.setText("取消"); jLabel10.setFont(new java.awt.Font("宋體", Font.PLAIN, 25); jLabel10.setForeground(new Color(0, 187, 62); jLabel10.setText("輸入詞匯"); jLabel10.setBounds(new Rectangle(6, 33, 107, 34); inputDeleteWord.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); inputDeleteWord.setBounds(new Rectangle(112, 31, 186, 37); deleteWordChinese.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); deleteWordChinese.setBounds(new Rectangle(112, 69, 185, 168); jScrollPane4.setBounds(new Rectangle(297, 31, 139, 206); deleteJList.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); deleteJList.setForeground(Color.blue); deleteJList.setSelectionBackground(new Color(51, 255, 0); deleteOkButton.setBounds(new Rectangle(437, 31, 83, 38); deleteOkButton.setFont(new java.awt.Font("楷體", Font.PLAIN, 20); deleteOkButton.setForeground(new Color(0, 187, 55); deleteOkButton.setText("刪除"); scanButton.setForeground(new Color(0, 214, 0); scanButton.setText("瀏覽"); jScrollPane5.setBounds(new Rectangle(25, 59, 146, 178); scanOutput.setColumns(5); scanOutput.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); scanOutput.setBounds(new Rectangle(188, 60, 315, 177); scanWordJList.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); scanWordJList.setForeground(Color.blue); scanWordJList.setSelectionBackground(Color.green); jLabel11.setFont(new java.awt.Font("楷體", Font.PLAIN, 45); jLabel11.setForeground(new Color(0, 255, 138); jLabel11.setText("歡迎訪問詞庫"); jLabel11.setBounds(new Rectangle(197, 8, 287, 40); deleteCancelButton.setBounds(new Rectangle(437, 96, 83, 34); deleteCancelButton.setFont(new java.awt.Font("楷體", Font.PLAIN, 20); deleteCancelButton.setForeground(new Color(0, 221, 42); deleteCancelButton.setToolTipText(""); deleteCancelButton.setText("取消"); pronunciationJList.setSelectionBackground(new Color(51, 255, 125); sound.setBounds(new Rectangle(420, 24, 74, 33); sound.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); sound.setToolTipText(""); sound.setText("發(fā)音"); inputSearchWord.setBounds(new Rectangle(117, 24, 302, 35); scanButton.setBackground(new Color(240, 240, 240); scanButton.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); scanSoundButton.setBounds(new Rectangle(110, 15, 79, 37); scanSoundButton.setFont(new java.awt.Font("宋體", Font.PLAIN, 20); scanSoundButton.setText("發(fā)音"); scanButton.setBounds(new Rectangle(27, 14, 78, 38); this.getContentPane().add(mainJP); searchEnglishOrChineseJP.add(jLabel2); searchEnglishOrChineseJP.add(jScrollPane1); searchEnglishOrChineseJP.add(outputSearchEnglish); searchEnglishOrChineseJP.add(inputSearchWord); searchEnglishOrChineseJP.add(sound); jScrollPane1.getViewport().add(listSearchEnglish); mainJP.add(searchEnglishOrChineseJP, "英漢互譯"); mainJP.add(addWordJP, "添加詞匯"); addWordJP.add(jLabel4); addWordJP.add(inputNewWord); addWordJP.add(jLabel7); addWordJP.add(newWordChinese); addWordJP.add(newWordClass); addWordJP.add(jLabel6); addWordJP.add(newWordPreterite); addWordJP.add(jLabel5); addWordJP.add(jLabel9); addWordJP.add(newWordModernism); addWordJP.add(jScrollPane3); addWordJP.add(pronunciation); addWordJP.add(addOkJButton); addWordJP.add(addCancelButton); addWordJP.add(jLabel8); jScrollPane3.getViewport().add(pronunciationJList); mainJP.add(deleteJP, "刪除詞匯"); deleteJP.add(jLabel10); deleteJP.add(inputDeleteWord); deleteJP.add(deleteWordChinese); deleteJP.add(jScrollPane4); deleteJP.add(deleteOkButton); deleteJP.add(deleteCancelButton); jScrollPane4.getViewport().add(deleteJList); mainJP.add(scanStock, "瀏覽詞庫"); scanStock.add(jScrollPane5); jScrollPane5.getViewport().add(scanWordJList); scanStock.add(scanButton); scanStock.add(scanOutput); scanStock.add(jLabel11); scanStock.add(scanSoundButton); this.getContentPane().add(jLabel1); jLabel1.setFont(new java.awt.Font("楷體", Font.PLAIN, 45); jLabel1.setForeground(Color.blue); jLabel1.setText("藍(lán)氏簡易英漢詞典"); jLabel1.setBounds(new Rectangle(107, 5, 374, 47); newWordClass.addItem("n. 名詞"); newWordClass.addItem("adj. 形容詞"); newWordClass.addItem("adv. 副詞"); newWordClass.addItem("num. 量詞"); newWordClass.addItem("V. 動詞"); newWordClass.addItem("Vi. 不及物動詞"); newWordClass.addItem("Vt. 及物動詞"); newWordClass.addItem("短語"); pronunciationJList.setLayoutOrientation(pronunciationJList.HORIZONTAL_WRAP); this.setSize(new Dimension(560, 385); /第一個參/為長度,第二個參數(shù)為高度/-英漢互譯模塊函數(shù)調(diào)用-/ /發(fā)音按鈕監(jiān)聽器 sound.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) sound_actionPerformed(e); ); /查找輸入框監(jiān)聽器 inputSearchWord.addCaretListener(new CaretListener() public void caretUpdate(CaretEvent e) inputSearch_caretUpdate(e); ); /查找單詞列表監(jiān)聽器 listSearchEnglish.addMouseListener(new MouseAdapter() public void mouseClicked(MouseEvent e) listSearchEnglish_mouseClicked(e); );/-添加面板模塊函數(shù)調(diào)-/ /新單詞輸入框監(jiān)聽器 inputNewWord.addCaretListener(new CaretListener() public void caretUpdate(CaretEvent e) inputNewWord_caretUpdate(e); ); /新單詞音標(biāo)輸入框監(jiān)聽器 pronunciation.addCaretListener(new CaretListener() public void caretUpdate(CaretEvent e) pronunciation_caretUpdate(e); ); /音標(biāo)選擇列表鼠標(biāo)監(jiān)聽器 pronunciationJList.addMouseListener(new MouseAdapter() public void mouseClicked(MouseEvent e) pronunciationJList_mouseClicked(e); ); /添加按鈕監(jiān)聽器 addOkJButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) addOkJButton_actionPerformed(e); ); / 取消添加單詞按鈕監(jiān)聽器 addCancelButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) addCancelButton_actionPerformed(e); ); /-刪除模塊函數(shù)調(diào)用-/ /刪除單詞輸入框監(jiān)聽器 inputDeleteWord.addCaretListener(new CaretListener() public void caretUpdate(CaretEvent e) inputDeleteWord_caretUpdate(e); ); /刪除單詞列表框鼠標(biāo)監(jiān)聽器 deleteJList.addMouseListener(new MouseAdapter() public void mouseClicked(MouseEvent e) deleteJList_mouseClicked(e); ); /刪除按鈕監(jiān)聽器 deleteOkButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) deleteOkButton_actionPerformed(e); ); /取消刪除按鈕監(jiān)聽器 deleteCancelButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) deleteCancelButton_actionPerformed(e); );/-瀏覽數(shù)據(jù)庫函數(shù)調(diào)用-/ /瀏覽詞庫單詞發(fā)音按鈕監(jiān)聽器 scanSoundButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) soundButton_actionPerformed(e); ); /瀏覽詞庫按鈕監(jiān)聽器 scanButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) scanButton_actionPerformed(e); );/瀏覽單詞列表鼠標(biāo)監(jiān)聽器 scanWordJList.addMouseListener(new MouseAdapter() public void mouseClicked(MouseEvent e) scanWordJList_mouseClicked(e); ); String listItem = "/", "", ",", "b","c", "d", "e","f", "h", "g", "i:", "i", "j", "k","l","m", "n",":","p", "r", "s", "t","u", "u:","ju:","v","w", "z", "", "", "", "","u00F0","u0259", "u0259u","u0254:","u0254","", "u00E6", "", ":", "ai", "ei", "tr", "dr", "au", "ts", "dz", "d3", "t", "", ; DefaultListModel model = new DefaultListModel(); JTabbedPane mainJP = new JTabbedPane(); JLabel jLabel1 = new JLabel(); JPanel searchEnglishOrChineseJP = new JPanel(); JPanel addWordJP = new JPanel(); JPanel deleteJP = new JPanel(); JPanel scanStock = new JPanel(); JLabel jLabel2 = new JLabel(); JTextField inputSearchWord = new JTextField(); JScrollPane jScrollPane1 = new JScrollPane(); JList listSearchEnglish = new JList(model); TextArea outputSearchEnglish = new TextArea(); JL

注意事項(xiàng)

本文(數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告(簡易英漢詞典系統(tǒng)))為本站會員(仙***)主動上傳,裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。 若此文所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng)(點(diǎn)擊聯(lián)系客服),我們立即給予刪除!

溫馨提示:如果因?yàn)榫W(wǎng)速或其他原因下載失敗請重新下載,重復(fù)下載不扣分。




關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!