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

正文內(nèi)容

簡易計算器課程設(shè)計-展示頁

2025-01-22 16:02本頁面
  

【正文】 4、這是“幫助”菜單里的“關(guān)于計算器”菜單項(xiàng):(null, 計算機(jī)開發(fā)者:魏曉力)。+\n)。+\n)。  (2. 單擊“+”執(zhí)行加、“”執(zhí)行減、“*”執(zhí)行乘或“/”執(zhí)行除+\n)。  (1. 鍵入計算的第一個數(shù)字。  (false)。  JTextArea help = new JTextArea(10, 30)。 addWindowListener(new WindowDestroyer())。 (this)?!   ?about)。 about = new JMenuItem( 關(guān)于計算器)。 (this)。 (t)。 t = new JMenuItem(●標(biāo)準(zhǔn)型)。 (fileMenu)。 (this)。 fileMenu = new JMenu(復(fù)制C Ctrl+C)。 (editMenu)。 JMenu helpMenu = new JMenu(幫助)。 JMenu editMenu = new JMenu(編輯)。 JMenuBar mainMenu = new JMenuBar()。 ()。 (ff)。 ()。 (ee)。 ()。 (dd)。 ()。 (cc)。 ()。 (b)。 ()。 (a)。 (lgX)。 (lnX)。 (tan)。 (sin)。 (cos)。 (deng)。 (jia)。 (dian)。 (fu)。 (num0)。 (dao)。 (jian)。 (num3)。 (num2)。 (num1)。 (quyu)。 (cheng)。 (num6)。 (num5)。 (num4)。 (kai)。 (chu)。 (num9)。 (num8)。 (num7)。 (ce)。 (two)。 (ten)。 (this)。 c=new JButton(C)。//CE ()。 (this)。 Back=new JButton(Back)。 (false)。 (two)。 (ten)。 ButtonGroup btg=new ButtonGroup()。 (this)。 (this)。 lnX=new JButton(lnX)。 tan=new JButton(tan)。 cos=new JButton(cos)。 num7=new JButton(7)。 num5=new JButton(5)。 num3=new JButton(3)。 num1=new JButton(1)。 dao = new JButton(1/x)。 dian = new JButton(.)。 deng = new JButton(=)。)。 cheng = new JButton()。 jia = new JButton(+)。 ff = new JButton(F)。 ee = new JButton(E)。 dd = new JButton(D)。 cc = new JButton(C)。 b = new JButton(B)。 a = new JButton(A)。 two=new JRadioButton(二進(jìn)制)。 eight=new JRadioButton(八進(jìn)制)。 ten=new JRadioButton(進(jìn)制,true)。 sixteen=new JRadioButton(十六進(jìn)制)。 (new GridLayout(2,4))。 (cp3,South)。 (cp1,North)。 JPanel cp3=new JPanel()。//從左到右 JPanel cp1=new JPanel()。 text=new JTextField(25)。 setSize(400,400)。 int jin=10,first=1。 double qian。 boolean clickable=true,clear=true。//容器,便于集體操作 JTextField text。 Jbutton a,b,cc,dd,ee,ff,jia,jian,cheng,chu,quyu,deng,fu,dian,kai,dao,cos,sin,tan,lgX,lnX?!RadioButton sixteen,ten,eight,two。  private objConversion convert = new objConversion()。import .*。import .*。 ** 繼承的父類: WindowAdapter類 ** 實(shí)現(xiàn)的接口:無 ************************************************************ 類名: objConversion ** 作用: 各個進(jìn)制之間的轉(zhuǎn)換。五、程序的界面設(shè)計及代碼實(shí)現(xiàn)  * 類名: calculator ** 作用: 主類。事件分為以下幾種情況:數(shù)字按鈕事件(0~9)、運(yùn)算符按鈕事件(+、-、/、%)、正負(fù)號按鈕事件(+/-)、小數(shù)點(diǎn)按鈕事件(.)、等號按鈕事件(=)、求倒按鈕事件(1/x)、三角函數(shù)按鈕事件(cos,sin,tan)、開方按鈕事件(sqrt)、對數(shù)按鈕事件(lgX,lnX)、進(jìn)制轉(zhuǎn)換按鈕事件。各種按鈕采用n行n列的網(wǎng)格布局,并注冊按鈕事件監(jiān)聽器。菜單中包含的一些功能,如幫助文檔。Back退格、CE返回上層運(yùn)算符、C清零功能。創(chuàng)建一個簡單計算器,具有簡單的人機(jī)交互界面,便于數(shù)據(jù)計算?!皫椭辈藛沃杏小瓣P(guān)于計算器”、“幫助主題”菜單項(xiàng),并實(shí)現(xiàn)相關(guān)功能。在菜單欄有查看、編輯、幫助菜單,在“查看”菜單中有“標(biāo)準(zhǔn)型”菜單項(xiàng),實(shí)現(xiàn)加減乘除等基本功能,“科學(xué)型”菜單項(xiàng),實(shí)現(xiàn)進(jìn)制間的轉(zhuǎn)換。其基本功能完成加減乘除、開方、求模、求倒,十進(jìn)制與八進(jìn)制、二進(jìn)制、十六進(jìn)制的轉(zhuǎn)換等,退格、清零等按鈕的實(shí)現(xiàn)。21八、源代碼15六、參考文獻(xiàn)7777  6五、程序的界面設(shè)計及代碼實(shí)現(xiàn)55四、設(shè)計思路5三、需求分析5二、問題描述及要求目錄一、運(yùn)行環(huán)境621七、總結(jié)22一、運(yùn)行環(huán)境(1).操作系統(tǒng):Solaris、Windows xp、Windows 7等(2). 應(yīng)用軟件:、Eclipse二、問題描述及要求制作一個計算器,要求仿Windows里的計算器,設(shè)計一個圖形界面,其中基本組件包括0~+、*、/、.、=、+/、Back、CE、C、sqrt、%、1/x、。 在我的計算器上實(shí)現(xiàn)了以上功能。在“編輯”菜單中有“復(fù)制”、“粘貼”菜單項(xiàng)。三、需求分析日常生活中經(jīng)常需要用到計算器,比如科學(xué)計算、數(shù)值計算、會計業(yè)務(wù)等,但簡單的計算器已不能滿足日常需要,因此有必要開發(fā)一些進(jìn)制轉(zhuǎn)換、開方等多種運(yùn)算的計算器。我的計算器具有的功能如下:實(shí)現(xiàn)基本的加、減、乘、除四則運(yùn)算及開方、求倒、求模。十進(jìn)制與二進(jìn)制、八進(jìn)制、十六進(jìn)制之間的轉(zhuǎn)換。四、設(shè)計思路 工作原理圖開始按鍵判斷進(jìn)制轉(zhuǎn)換數(shù)字按鍵運(yùn)用相應(yīng)處理按鍵判斷運(yùn)算符按鍵進(jìn)制轉(zhuǎn)換顯示結(jié)果是否繼續(xù)操作結(jié)束 本程序繼承父類Frame,運(yùn)用了布局管理器GridLayout和Borderlayout,將界面分為三塊,頂上為單行文本框,中間為進(jìn)制單選鈕和退格、清空按鈕,下面是數(shù)字、符號按鈕?!   ∈录O(jiān)聽器中的事件處理方法void actionPerformed(ActionEvent event)完成主要的按鈕事件的處理?!   ≡诖寺暶鞯氖敲看屋斎氲臄?shù)據(jù)都要進(jìn)行類型轉(zhuǎn)換。** 繼承的父類: JFrame類 ** 實(shí)現(xiàn)的接口:ActionListener類 ************************************************************ 類名: WindowDestroyer ** 作用: 退出窗口動作。** 繼承的父類: 無 ** 實(shí)現(xiàn)的接口:無 ***********************************************************         import .*。import ?!       。?、調(diào)試后的界面:標(biāo)準(zhǔn)型  JScrollPane scrollHelp。  JMenuItem fileMenu,exitItemOfFile,s,t, about, me。//單選按扭Jbutton Back,ce,c,num0,num1,num2,num3,num4,num5,num6,num7,num8,num9。 Container cp。 String copycontent=。 int all=0。 String fuhao,copy。 public Calculator(){ super(計算器)。 setLocation(400,400)。 ()。 JPanel cp2=new JPanel()。 cp=getContentPane()。 (cp2,Center)。 (new GridLayout(1,1))。 (new GridLayout(7,4))。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 jian = new JButton()。 chu = new JButton(247。 quyu = new JButton(%)。 fu = new JButton(+/)。 kai = new JButton(sqrt)。 num0=new JButton(0)。 num2=new JButton(2)。 num4=new JButton(4)。 num6=new JButton(6)。 num8=new JButton(8)。 sin=new JButton(sin)。 lgX=new JButton(lgX)。 num9=new JButton(9)。 (this)。 (this)。//創(chuàng)建一個多斥作用域 (sixteen)。 (eigh
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1