文件名称:Calculator
介绍说明--下载内容均来自于网络,请自行研究使用
一.设计思路:
1.界面设计
整个面板由4个面板组成,
第一个面板放置显示文本域以及清除按钮
panel1.setLayout(new FlowLayout())
panel1.add(bClear)
panel1.add(XsArea)
第二个面板放置数字按钮及点按钮和等号按钮,采用GridLayout布局,4行3列
panel2.setLayout(new GridLayout(4,3))
panel2.add(b[i])
panel2.add(bPoint)
panel2.add(bEqual)
第三个面板放置运算符号按钮,同样采用GridLayout布局,
-1. Design: 1. Interface design from the entire panel composed of four panels, the first panel to place the text domain and for the removal of the button panel1.setLayout (new FlowLayout ()) panel1.add (bClear) panel1.add (XsArea) The second panel button and point to place the number of buttons and an equal sign button, using GridLayout layout, line 4 3 panel2.setLayout (new GridLayout (4,3)) panel2.add (b [i]) panel2.add (bPoint ) panel2.add (bEqual) placed third panel computing symbols button, the same used GridLayout layout,
1.界面设计
整个面板由4个面板组成,
第一个面板放置显示文本域以及清除按钮
panel1.setLayout(new FlowLayout())
panel1.add(bClear)
panel1.add(XsArea)
第二个面板放置数字按钮及点按钮和等号按钮,采用GridLayout布局,4行3列
panel2.setLayout(new GridLayout(4,3))
panel2.add(b[i])
panel2.add(bPoint)
panel2.add(bEqual)
第三个面板放置运算符号按钮,同样采用GridLayout布局,
-1. Design: 1. Interface design from the entire panel composed of four panels, the first panel to place the text domain and for the removal of the button panel1.setLayout (new FlowLayout ()) panel1.add (bClear) panel1.add (XsArea) The second panel button and point to place the number of buttons and an equal sign button, using GridLayout layout, line 4 3 panel2.setLayout (new GridLayout (4,3)) panel2.add (b [i]) panel2.add (bPoint ) panel2.add (bEqual) placed third panel computing symbols button, the same used GridLayout layout,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
计算器
......\1.doc
......\Calculator.java
......\1.doc
......\Calculator.java