个人通讯录java代码完整版

loading 分享 2026-8-20 下载文档

area.append(str2+'\\t'); area.append(find.next()+' '); area.append(find.next()+' '); area.append(find.next()+'\\t'); area.append(find.next()+'\\t'); area.append(find.next()+'\\t'); area.append(find.next()+'\\n'); } else{ find.next();find.next();find.next();find.next(); find.next();find.next(); } } file.close(); find.close(); }catch (FileNotFoundException e1) { e1.printStackTrace(); }catch (IOException e2){ e2.printStackTrace(); } if(n==0) try

//全体人员信息

{ BufferedReader read=new BufferedReader(new FileReader(\ area.append(\姓名\组别\生日\电话\其他\ int z=1; while(z==1){ String str=read.readLine(); if(str!=null) area.append(str+'\\n'); else z=0; } read.close(); }catch (FileNotFoundException e1) { e1.printStackTrace(); }catch (IOException e2){ e2.printStackTrace(); } }

}

edit5.addActionListener(new ActionListener() //监听排序 { public void actionPerformed(ActionEvent e) { new Print(\按姓名排序后\ }

});

show1.addActionListener(new ActionListener() 听同学 { public void actionPerformed(ActionEvent e)

{

new Print(\同学\

}

});

show2.addActionListener(new ActionListener() 听同事 { public void actionPerformed(ActionEvent e)

{

new Print(\同事\

}

});

show3.addActionListener(new ActionListener() 听朋友 {

public void actionPerformed(ActionEvent e)

{

new Print(\朋友\ } }); show4.addActionListener(new ActionListener() 听亲戚 { public void actionPerformed(ActionEvent e) { new Print(\亲戚\ } }); show5.addActionListener(new ActionListener() 听全体人员 {

//监//监//监//监//监 public void actionPerformed(ActionEvent e) { new Print(\全体人员\ } }); }

public static void main(String []args){ new MyAddBook(); }

public static String[] getSortOfChinese(String[] a) {

// Collator 类是用来执行区分语言环境这里使用CHINA

Comparator cmp = Collator.getInstance(java.util.Locale.CHINA);

// JDKz自带对数组进行排序。 Arrays.sort(a, cmp); return a; } }

//输入类

class Typein implements ActionListener{ public static int z=2; public static int y=0; public JLabel Lname,Lgroup,Lbirthday,Lphone,Lemail,Lother,Lnote; public JTextField Tname=new JTextField(10),Tphone=new JTextField(15), Temail=new JTextField(15),Tother=new JTextField(15); public Choice Cgroup=new Choice(),Cbirthyear=new Choice(),Cbirthmonth=new Choice(), Cbirthday=new Choice(); public JButton certain,cancel;

public JFrame frame=new JFrame(\录入联系人信息\public Typein(){

Cgroup.addItem(\无\Cgroup.addItem(\同学\Cgroup.addItem(\同事\Cgroup.addItem(\朋友\Cgroup.addItem(\亲戚\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\

Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthyear.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthmonth.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\Cbirthday.addItem(\


个人通讯录java代码完整版.doc 将本文的Word文档下载到电脑
搜索更多关于: 个人通讯录java代码完整版 的文档
相关推荐
相关阅读