首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 简易计算器不需要很高深的算法,对于数字计算的唯一要求就是在除数为零的时候要加以判断和处理,其他的就是窗口布局和功能完善了;首先:计算器需要一个显示按键结果的Te...

简易计算器不需要很高深的算法,对于数字计算的唯一要求就是在除数为零的时候要加以判断和处理,其他的就是窗口布局和功能完善了;首先:计算器需要一个显示按键结果的Te...

  • 资源大小:12.83 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Java Develop java

资 源 简 介

简易计算器不需要很高深的算法,对于数字计算的唯一要求就是在除数为零的时候要加以判断和处理,其他的就是窗口布局和功能完善了;首先:计算器需要一个显示按键结果的TextField部件,再就是添加很多Button了;为了界面的美观,为Frame添加两个panel,一个布局用BorderLayout.NORTH,另一个用GridLayout分成均等的几行几列;窗口的整体布局就基本成形了。剩下的为Button添加事件及响应事件的结果,编写程序实现。-simple calculators do not need high deep algorithm, figures for the only requirement is the divisor to zero when the judgment and, The rest is window layout and functions; First : need a calculator button shows the results of the TextField component, Then, it took a lot of added Button; To the beautiful interface, Frame added two panel, BorderLayout.NORTH using a layout, Another use GridLayout divided into equal out several lines; window on the overall layout of the basic shaping. Button left to add events and respond to the findings, preparation processes.

文 件 列 表

简易计算器
cal.class
cal.java
WinClose.class
程序说明.doc
VIP VIP
0.210949s