我用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)