• 大小: 62KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: Java
  • 标签: java  dom  xml  通讯录  

资源简介

用java中的DOM解析器,解析XML文档,并实现一简单通讯录!

资源截图

代码片段和文件信息

/*
 * connection.java
 *
 * Created on __DATE__ __TIME__
 */

package connectionlist;

import org.w3c.dom.*;
import org.xml.sax.SAXException;

import javax.swing.Jframe;
import javax.swing.JList;
import javax.xml.parsers.*;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.*;
import java.util.ArrayList;

/**
 * 
 * @author __USER__
 */
public class connection extends javax.swing.Jframe {

/** Creates new form connection */
static String name;
static String sex;
static String birthday;
static String phone;
static String email;
static Stri

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         50  2010-05-18 10:45  说明.txt

     文件        358  2009-11-10 22:30  javaSwing\.classpath

     文件        385  2009-10-23 14:24  javaSwing\.project

     文件        954  2009-11-15 15:16  javaSwing\main.xml

     文件      14884  2009-11-12 21:00  javaSwing\src\connectionlist\connection.form

     文件      22530  2009-11-15 15:17  javaSwing\src\connectionlist\connection.java

     文件       2850  2009-11-10 22:30  javaSwing\lib\AbsoluteLayout.jar

     文件     118103  2009-11-10 22:30  javaSwing\lib\swing-layout-1.0.3.jar

     文件        141  2009-10-23 15:16  javaSwing\bin\java.policy.applet

     文件        789  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$1.class

     文件       1979  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$2.class

     文件       3141  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$3.class

     文件       2547  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$4.class

     文件        841  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$5.class

     文件        787  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$6.class

     文件        787  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$7.class

     文件        914  2009-11-15 15:17  javaSwing\bin\connectionlist\connection$8.class

     文件      11609  2009-11-15 15:17  javaSwing\bin\connectionlist\connection.class

     文件      14884  2009-11-12 21:00  javaSwing\bin\connectionlist\connection.form

     目录          0  2010-04-22 21:09  javaSwing\src\connectionlist

     目录          0  2010-04-22 21:09  javaSwing\bin\connectionlist

     目录          0  2010-04-22 21:09  javaSwing\src

     目录          0  2010-04-22 21:09  javaSwing\lib

     目录          0  2010-04-22 21:09  javaSwing\bin

     目录          0  2010-04-22 21:09  javaSwing

----------- ---------  ---------- -----  ----

               198533                    25


评论

共有 条评论