www.rlmx.net > jAvA 计算器

jAvA 计算器

import java.awt.BorderLayout; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.sw...

import java.awt.Color;import java.awt.Dimension;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.Insets;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.J...

import java.awt.*; import javax.swing.*; import java.awt.event.*; public class MathCalc extends JFrame{ JTextField textDisplay; public String [] name={"1","2","3","4","5","6","7","8","9","0",".","c","+","-","*","/","1/x","+/-",...

给你个现成的,直接编译运行,请采纳import java.awt.BorderLayout;import java.awt.Color;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing....

给你一个参考,希望不要被百度吞了当晚餐 import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.text.DecimalFormat; import javax.swing.JButton;...

这是去年我的期末作业,发给你吧。 import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.io.*; public class Calculate extends JFrame { private String front = "", behind = ""; //分别用于记录加减乘除运算符之...

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Calculator implements ActionListener { String s="",s1; double d1,d2; JFrame jf = new JFrame("小计算器by Graduate") ; JTextField tf = new JTextField(...

无聊写了个,修复了下Bug: import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.J...

//问题是键盘事件和actionevent不能相互监听,还有快捷键怎样输入?例如backspace import javax.swing.*;//开展的GUI工具包 import java.math.*; import java.awt.*; import java.awt.event.*; //计算器类,只响应鼠标点击按钮时间 public class...

/* * @(#)JCalculator.java 1.00 06/17/2015 */ import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * A simple calculator program. * I saw this program in a QQ group, and help a friend correct it. * * @author Sin...

网站地图

All rights reserved Powered by www.rlmx.net

copyright ©right 2010-2021。
www.rlmx.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com