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

正文內(nèi)容

java課程設(shè)計(jì)報(bào)告--實(shí)現(xiàn)記事本功能-文庫吧資料

2025-01-23 11:40本頁面
  

【正文】 Bar menu=new JMenuBar()。………………//創(chuàng)建打開文件對話框 JColorChooser opencolor=new JColorChooser()。 ……//滾動面板對象 } JTextPane content=new JTextPane()。 initAboutDialog()。 mynotepad(){ initTextContent()。class mynotepad extends JFrame{ File file=null。import .*。} }七、測試分析圖4:點(diǎn)擊“文件”運(yùn)行情況 圖5:“文件”菜單中的“打開”對話框圖6:打開文件后圖8:“關(guān)于”對話框八、源程序import .*。 (new String(buffer))。 (buffer,0,len)。 int len=(int)()。 } catch(Exception e){()。 (())。捕獲處理異常的第一步是用try選定要監(jiān)控的異常范圍,try后跟隨catch代碼塊。 在運(yùn)行程序代碼是有可能會產(chǎn)生異常情況或異常事件,為了避免這種情況,就需要在程序中用到Java異常處理機(jī)制。 }else if(顏色.equals(name)){ color=(,color)。 }else if(復(fù)制.equals(name)){ ()。 int s=(f,退出?,退出,)。 saving()。 int returnVal=()。 unfold()。 int returnVal=()。 file=null。 JMenuItem MI=(JMenuItem)()。 } JMenuItem optionofmenu[][]=new JMenuItem[][]{{ new JMenuItem(新建), new JMenuItem(打開), new JMenuItem(保存), new JMenuItem(退出) }, { new JMenuItem(復(fù)制), new JMenuItem(剪切), new JMenuItem(粘貼), new JMenuItem(顏色) }, { new JMenuItem(關(guān)于) } }。 menuView = new JMenu(察看(V), true)。 private void setMenu() { menuFile = new JMenu(文件(F), true)。 另外,還用來WindowListener來監(jiān)聽處理容器關(guān)閉觸發(fā)的事件,WindowListener繼承了WindowsAdapter類并覆蓋了WindowsClosing方法。事件監(jiān)聽器不僅要添加在菜單欄和內(nèi)容輸入?yún)^(qū),還需加在容器中。 (2).Menu為菜單欄。本程序中首先定義一個Notebook類繼承JFrame作為最底層容器。implementsActionListenerNotebookJFrameextends 圖1在圖1中,首先創(chuàng)建一個名為Notebook的類并繼承JFrame類作為最底層的容器。JMenu用來制作菜單,菜單包括“文件”“編輯”“關(guān)于”。 六、設(shè)計(jì)分析 在本程序中,設(shè)計(jì)了一個菜單欄和文本內(nèi)容區(qū)。 功能要求:用圖
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1