clear.setForeground(Color.blue);
b0.setForeground(Color.blue);
b1.setForeground( Color.blue);
b2.setForeground( Color.blue);
b3.setForeground( Color.blue);
b4.setForeground( Color.blue);
b5.setForeground( Color.blue);
b6.setForeground( Color.blue);
b7.setForeground( Color.blue);
b8.setForeground( Color.blue);
b9.setForeground( Color.blue);
a.setForeground( Color.blue);
b.setForeground( Color.blue);
c.setForeground( Color.blue);
d.setForeground( Color.blue);
e.setForeground( Color.blue);
f.setForeground( Color.blue);
dian.setForeground( Color.blue);
clear.addActionListener(this);
jia.addActionListener(this);
jian.addActionListener(this);
cheng.addActionListener(this);
chu.addActionListener(this);
deng.addActionListener(this);
dian.addActionListener(this);
sqr.addActionListener(this);
mee.addActionListener(this);
cheng.setForeground(Color.red);
chu.setForeground(Color.red);
jia.setForeground(Color.red);
jian.setForeground(Color.red);
deng.setForeground(Color.black);
sqr.setForeground(Color.red);
mee.setForeground(Color.red);
ox.addItemListener(new checkbox(2));
bx.addItemListener(new checkbox(8));
dx.addItemListener(new checkbox(10));
hex.addItemListener(new checkbox(16));
ButtonGroup tk=new ButtonGroup();
tk.add(ox);
tk.add(bx);
tk.add(dx);
tk.add(hex);
ox.setForeground(Color.black);
bx.setForeground(Color.black);
dx.setForeground(Color.black);
hex.setForeground(Color.black); pack();show();
b0.setForeground(Color.blue);
b1.setForeground( Color.blue);
b2.setForeground( Color.blue);
b3.setForeground( Color.blue);
b4.setForeground( Color.blue);
b5.setForeground( Color.blue);
b6.setForeground( Color.blue);
b7.setForeground( Color.blue);
b8.setForeground( Color.blue);
b9.setForeground( Color.blue);
a.setForeground( Color.blue);
b.setForeground( Color.blue);
c.setForeground( Color.blue);
d.setForeground( Color.blue);
e.setForeground( Color.blue);
f.setForeground( Color.blue);
dian.setForeground( Color.blue);
clear.addActionListener(this);
jia.addActionListener(this);
jian.addActionListener(this);
cheng.addActionListener(this);
chu.addActionListener(this);
deng.addActionListener(this);
dian.addActionListener(this);
sqr.addActionListener(this);
mee.addActionListener(this);
cheng.setForeground(Color.red);
chu.setForeground(Color.red);
jia.setForeground(Color.red);
jian.setForeground(Color.red);
deng.setForeground(Color.black);
sqr.setForeground(Color.red);
mee.setForeground(Color.red);
ox.addItemListener(new checkbox(2));
bx.addItemListener(new checkbox(8));
dx.addItemListener(new checkbox(10));
hex.addItemListener(new checkbox(16));
ButtonGroup tk=new ButtonGroup();
tk.add(ox);
tk.add(bx);
tk.add(dx);
tk.add(hex);
ox.setForeground(Color.black);
bx.setForeground(Color.black);
dx.setForeground(Color.black);
hex.setForeground(Color.black); pack();show();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货