(javaimplementationcalculator,importjava.awt.*importjava.awt.event.*importjavax.swing.*publicclassJiSuanQi{FramefLabellabButton[]bt=newButton[29]JTextFieldtStringBufferstr//displaycharacterstringdisplayeddoublex,y//xandyaretheoperandsintz//Zrepresentsanoperatorclicksthat0means"+",1indicates"-",2is"*",3is"/"staticdoublem//numberinmemoryJiSuanQi(){) - IMDN开发者社群-imdn.cn">
登录
首页 » Java » JiSuanQi

JiSuanQi

于 2013-05-24 发布 文件大小:2KB
0 216
下载积分: 1 下载次数: 3

代码说明:

  java实现计算器,import java.awt.* import java.awt.event.* import javax.swing.* public class JiSuanQi { Frame f Label lab Button[] bt=new Button[29] JTextField t StringBuffer str //显示屏所显示的字符串 double x,y //x和y都是运算数 int z //Z表示单击了那一个运算符.0表示"+",1表示"-",2表示"*",3表示"/" static double m //记忆的数字 JiSuanQi() {(java implementation calculator, import java.awt.* import java.awt.event.* import javax.swing.* public class JiSuanQi {Frame f Label lab Button [] bt = new Button [29] JTextField t StringBuffer str //display character string displayed double x, y //x and y are the operands int z //Z represents an operator clicks that 0 means " +" , 1 indicates " -" , 2 is " *" , 3 is " /" static double m //number in memory JiSuanQi () {)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 讲述如何对长文件进行socket通讯,,保证传输的质量
    讲述如何对长文件进行socket通讯,编程,保证传输的质量-on how long the documents socket communications, programming, the quality assurance transmission
    2022-10-07 08:40:03下载
    积分:1
  • CHAT
    Java聊天程序服务端和客户端程序,C/S结构,ChatServer 类实现了一个聊天室服务器端, 此类有一个构造器, 在构造器中使用newServerSocket()建立一个Socket 连接。( Java chat server and client service procedures, C/S structure, ChatServer class implements a chat room on the server side, such a constructor, use newServerSocket in the constructor () to create a Socket connection. Java chat server and client service procedures, C/S structure, ChatServer class implements a chat room on the server side, such a constructor, use newServerSocket in the constructor () to create a Socket connection.)
    2014-08-11 17:58:30下载
    积分:1
  • the client for communicating by tcp
    基于tcp通信的客户端源代码,可以与基于TCP通信的服务器端实现链接并通话-the client for communicating by tcp
    2022-03-20 01:33:51下载
    积分:1
  • base on jxta
    基于jxta的P2P框架的系统,主要功能有局域网聊天、文件共享系统、白板等-base on jxta
    2022-11-17 07:40:03下载
    积分:1
  • 存量房
    股票实时数据控件是标准的OCX控件,提供实时的沪深股票数据,数据来自各种数据接口,如银江、数畅等。股票实时数据控件是国内第一款股票数据的ocx控件,可以用在支持Activex的所有语言上。-Stock real-time data control is a standard OCX control, Shanghai and Shenzhen to provide real-time stock data, data from a variety of data interfaces, such as the Silver River, a few smooth and so on. Stock real-time data control is China" s first stock data, ocx control, can be used in support of Activex in all language.
    2023-01-06 13:50:03下载
    积分:1
  • DSPMHBW
    无线局域网情况下OFDM的信道分配仿真代码 很好的源码 不错的(Wireless local area network (LAN) case OFDM channel allocation simulation code is a good source of good)
    2017-05-17 18:18:45下载
    积分:1
  • 用rawsocket构造tcp数据包的
    用rawsocket构造tcp数据包的程序-Rawsocket constructed using tcp packet procedure
    2022-07-24 11:02:32下载
    积分:1
  • poi-3.17jar
    poi 3.17 jar包 这个版本的所需要的jar包,官方下载整理。(poi 3.17jar This version of the required jar package, the official download and organize.)
    2017-11-15 14:52:15下载
    积分:1
  • Ls
    说明:  如何编图形软件开发程序,画图过程的显示,图像分层显示 图层软件架构: 大型图形软件通用的架构,是用一个抽象类(CLayer)的多态派生类对不同图层代码分类管理。 (如果将各种图形绘制以及拖放过程在一个类中编写,最后这个类的代码将无比庞大而且难于维护) a)支持画直线、矩形和椭圆等多种图形的软件,必须将鼠标按下、释放和拖动等事件联合处理; b)支持绘图过程中的显示; c)支持鼠标光标掠过某个图层时显示热点跟踪(HotTrack)状态; d)单击某个图层时显示选中状态; e)拖动某个选中状态图层的功能(根据鼠标落点和起点的距离进行偏移); f)新绘制的图层和已绘制好选中的图层边框和填充颜色管理。(How to make graphical software development procedures, drawing process display, image layered display Layer software architecture: The general architecture of large graphics software is to classify and manage different layers of code using a polymorphic class derived from an abstract class (CLayer). (if the various graphic drawing and drag and drop processes are written in a class, the code for that class will be extremely large and difficult to maintain) A) software that supports graphics such as straight lines, rectangles, and ellipses. It must combine the mouse, press, release, and drag events together; B) support display in drawing process; C) displays the hot spot tracking (HotTrack) state when the mouse cursor is passed over a layer; D) displays a selected state when clicked on a layer; E) drag the function of a selected layer (offset by the distance between the mouse and the starting point); F) the new layer and the selected layer border and fill color management.)
    2017-06-12 23:32:17下载
    积分:1
  • 飞鸽传输源代码,很好,vb写得。适合开发者
    飞鸽传输源代码,很好,vb写得。适合开发者-Dove transmission source code, well, vb written. For developers
    2022-03-18 06:22:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载