java计算器问题反馈_java 计算器问题

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

import java.awt.*;

import java.awt.event.*;

public class ji implements ActionListener {

/**

* @param args

*/

ji o = new ji();

static Label l = new Label ("INPUT");

static TextField t = new TextField ("",22);

static Button b0 = new Button ("0");

static Button b1 = new Button ("1");

static Button b2 = new Button ("2");

static Button b3 = new Button ("3");

static Button b4 = new Button ("4");

static Button b5 = new Button ("5");

static Button b6 = new Button ("6");

static Button b7 = new Button ("7");

static Button b8 = new Button ("8");

static Button b9 = new Button ("9");

static Button b12 = new Button ("+");

static Button b13 = new Button ("-");

static Button b14 = new Button ("*");

static Button b15 = new Button ("/");

static Button b11= new Button (".");

static Frame f = new Frame ("飞鸽牌");

public static void main(String[] args) {

// TODO Auto-generated method stub

f.setBounds(200, 200, 250,250);

l.setBackground(Color.RED);

Panel a = new Panel ();

Panel b = new Panel ();

a.setLayout(new FlowLayout());

a.add(l);

a.add(t);

b.add(b7);

b.add(b8);

b.add(b9);

b.add(b12);

b.add(b4);

b.add(b5);

b.add(b6);

b.add(b13);

b.add(b1);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值