yhkn.net
当前位置:首页 >> 用JAvA设计一个简单的计算器. >>

用JAvA设计一个简单的计算器.

然后 通过输入 显示结果,比如说: 以下是上图计算器的代码: package Computer; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.Font; import java.awt.GridLayout; import java.awt.event...

无聊写了个,修复了下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...

我写了个整数可以使用的, 你可以研究一下, 添入小数部分 功能和window7自带的那个一样 import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.sw...

下午发 五分钟搞定,先给你发个简单的,照例子自己去做你想要的计算器 package aaa; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class YunSuan implements ActionListener,ItemListener { public static JFrame...

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.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JBut...

import java.awt.*; import java.awt.event.*; public class CalcAppDemo extends Frame{ private TextField t_result; private Panel p_main; //主面板 private Panel p_num; //数字面板 private Panel p_oper; //操作符面板 private Panel p_s...

import sun.plugin.security.Broken11ClassFixer; import java.awt.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JFrame; import java.awt.FlowLayou...

给你一个参考,希望不要被百度吞了当晚餐 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 java.awt.event.*; import javax.swing.*; public class JiSuanQi extends JFrame implements ActionListener { /** * Serial Version UID */ private static final long serialVersionUID = -169068472193786457L; /...

网站首页 | 网站地图
All rights reserved Powered by www.yhkn.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com