import Java.awt.*;
import java.awt.event.*;
import java.util.*;
class p1 extends Panel
{
Label l1;
Font f=new Font("宋体",Font.BOLD,20);
p1()
{
setLayout(new GridLayout(1,1));
l1=new Label("用户电话号码治理",Label.CENTER);
l1.setFont(f);
add(l1);
}
}
class p2 extends Panel
{
Label l1,l2;
TextField t1,t2;
p2()
{
setLayout(new GridLayout(1,4));
l1=new Label("姓名",Label.CENTER);
l2=new Label("身份证号",Label.CENTER);
t1=new TextField(10);
t2=new TextField(10);
add(l1);
add(t1);
add(l2);
add(t2);
}
}
class p3 extends Panel
{
Label l1,l2;
TextField t1,t2;
p3()
{
setLayout(new GridLayout(1,4));
l1=new Label("家庭住址",Label.CENTER);
l2=new Label("电话号码",Label.CENTER);
t1=new TextField(10);
t2=new TextField(10);
add(l1);
add(t1);
add(l2);
add(t2);
}
}
class p4 extends Panel
{
Label l1,l2;
TextField t1,t2;
Button BTn1;
p4()
{
setLayout(new GridLayout(1,5));
l1=new Label("话费余额",Label.CENTER);
l2=new Label("预交话费",Label.CENTER);
t1=new TextField(15);
t2=new TextField(15);
btn1=new Button("确认");
add(l1);
add(t1);
add(l2);
add(t2);
add(btn1);
}
}
class p5 extends Panel
{
Label l1;
TextField t1;
p5()
{
setLayout(new GridLayout(1,2));
l1=new Label("预交时话费总额",Label.CENTER);
t1=new TextField(20);
add(l1);
add(t1);
}
}
class p6 extends Panel
{
Button btn1,btn2;
p6()
{
setLayout(new GridLayout(1,2));
btn1=new Button("按用户姓名查询");
btn2=new Button("按电话号码查询");
add(btn1);
add(btn2);
}
}
class p7 extends Panel
{
Button btn1,btn2,btn3,btn4,btn5;
p7()
{
setLayout(new GridLayout(1,5));
btn1=new Button("修改");
btn2=new Button("添加");
btn3=new Button("删除");
btn4=new Button("清空");
btn5=new Button("退出系统");
add(btn1);
add(btn2);
add(btn3);
add(btn4);
add(btn5);
}
}
class user
{
String username;
String id;
String address;
String phonenumber;
double phonefee;
user(String x1,String x2,String x3,String x4,double x5)
{
username=x1;
id=x2;
address=x3;
phonenumber=x4;
phonefee=x5;
}
}
class p8 extends Panel
{
Label l1,l2,l3;
Label l4,l5,l6,l7,l9;
Panel p11,p22,p33,p44,p55;
TextField t1,t2;
Button btn;
p8()
{
p11=new Panel();
p22=new Panel();
p33=new Panel();
p44=new Panel();
p55=new Panel();
p11.setLayout(new GridLayout(1,1));
p22.setLayout(new GridLayout(1,1));
p33.setLayout(new GridLayout(1,4));
p44.setLayout(new GridLayout(1,4));