Article View: borland.public.jbuilder.java.swing
Article #9234Problems with DefaultTableModel in java versions?
From: Hilde Lehmann
Date: Mon, 01 May 2000 00:00
Date: Mon, 01 May 2000 00:00
69 lines
3627 bytes
3627 bytes
My application has a JTable with a Model that extends from DefaultTableModel. If I run inside JBuilder 3 (which has jdk 1.2) works fine. If I run it outside JBuilder with jdk 1.2.1 it also works fine, but if I run it with jdk 1.2.2, it crashes with the following error: Does anybody knows if there is a change in the new version? Thanks Hilde Lehmann Exception occurred during event dispatching: java.lang.NullPointerException at GbsBook.OutLineModel.getRowCount(OutLineModel.java:19) at javax.swing.JTable.getRowCount(Unknown Source) at javax.swing.JTable.columnSelectionChanged(Unknown Source) at javax.swing.table.DefaultTableColumnModel.fireColumnSelectionChanged(Unknown Source) at javax.swing.table.DefaultTableColumnModel.valueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.setAnchorSelectionIndex(Unknown Source) at javax.swing.JTable.initializeLocalVars(Unknown Source) at javax.swing.JTable.<init>(Unknown Source) at javax.swing.JTable.<init>(Unknown Source) at GbsBook.OutLinePanel.<init>(OutLinePanel.java:34) at GbsBook.InputModePanel.createForm(InputModePanel.java, Compiled Code) at GbsBook.InputModePanel$25.valueChanged(InputModePanel.java, Compiled Code) at javax.swing.JTree.fireValueChanged(Unknown Source) at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source) at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source) at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source) at javax.swing.JTree.setSelectionPath(Unknown Source) at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at pv.jfcx.JPVTree.processMouseEvent(JPVTree.java:2382) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(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.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Technical Details
Message-ID:
<390DAFCF.D562C6F2@intercable.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,938fa266a0ea912c,start X-Google-Attributes: gid111d45,public From: Hilde Lehmann <mole@intercable.net> Subject: Problems with DefaultTableModel in java versions? Date: 2000/05/01 Message-ID: <390DAFCF.D562C6F2@intercable.net> X-Deja-AN: 617896683 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 1 May 2000 09:14:28 -0800, 207.248.44.59 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing