wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Problems with JTable editing (error message included) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problems with JTable editing (error message included)" Watch "Problems with JTable editing (error message included)" New topic
Author

Problems with JTable editing (error message included)

David Dickinson
Ranch Hand

Joined: Nov 11, 2004
Posts: 66
Hi folks,

I've been asked to post this message here after discussion on the intermediate forum, you can check out the other post here.

My table model is from a class which extends AbstractTableModel.

The error occurs every time the following sequence of actions is taken..

Double click in a cell (to put it in editing mode) then without changing the value, moving to another cell.

OR

Checking or unchecking the boolean checkbox generates the same error

Does anyone have any ideas what could be causing this? I've tried tracing it through the Eclipse debugger but it seems to occur in the Sun classes and I can't follow it once it leaves my code.

Thank-you, and sorry for the cross post.


java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.adjustFocusAndSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
 
wood burning stoves
 
subject: Problems with JTable editing (error message included)
 
Similar Threads
Getting Null Pointer Exception when getting the value after cell ediiting in Jtable
Getting error Incompatible magic value 1784772193 in class file
almost done
Help me in getting the value of a cell after editing in Jtable
Help with NullPointerException