该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
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);