| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1149 人关注过本帖
标题:我用java写了一个地址簿程序,然后又建立了一个数据库保存地址簿,数据库与程 ...
只看楼主 加入收藏
wkaijie0723
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2008-10-22
结帖率:100%
收藏
 问题点数:0 回复次数:3 
我用java写了一个地址簿程序,然后又建立了一个数据库保存地址簿,数据库与程序连接没有问题,但是运行后在对话框里新添加的资料怎么保存不进数据库锕,下面是出错提示
错误提示:  Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Element cannot be resolved to a type
    Document cannot be resolved to a type
    Document cannot be resolved to a type
    Format cannot be resolved to a type
    Format cannot be resolved
    XMLOutputter cannot be resolved to a type
    XMLOutputter cannot be resolved to a type

    at addresslist.MyFrame.jButton1_actionPerformed(MyFrame.java:265)
    at addresslist.MyFrame_jButton1_actionAdapter.actionPerformed(MyFrame_jButton1_actionAdapter.java:14)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
搜索更多相关主题的帖子: java 数据库 对话框 提示 
2008-10-31 14:09
freish
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1223
专家分:437
注 册:2007-6-1
收藏
得分:0 
Element
Format
XMLOutputter
import以上类或接口
2008-10-31 15:36
wkaijie0723
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2008-10-22
收藏
得分:0 
还是不太明白,版主能给我说详细点吗?超谢谢你了,
2008-10-31 17:42
freish
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1223
专家分:437
注 册:2007-6-1
收藏
得分:0 
如果你没有在开头写上import javax.swing.*;你能在里面用JTextField么?!

你的错误提示Element、Format、XMLOutputter不能解析为一种类型,表明你没有导入相应的包
2008-10-31 18:43
快速回复:我用java写了一个地址簿程序,然后又建立了一个数据库保存地址簿,数据库 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.028493 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved