Hi, im migrating an app from 1.3 to 1.5. The window has a table with some components inside the table. When i mouse click in one type of component (a non standar component, someone did it) i got an exception, the second time i mouse click on the component it works fine. It happens only with a certain component.
The exception i get is:
java.lang.NullPointerException
at javax.swing.JComponent.registerNextFocusableComponent(Unknown Source)
at javax.swing.JComponent.setNextFocusableComponent(Unknown Source)
at javax.swing.JTable.prepareEditor(Unknown Source)
at javax.swing.JTable.editCellAt(Unknown Source)
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.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)
all of the classes displayed are from swing or awt so i dont have any idea how to solve this. Any Idea?
Also inside the table when whe have an Combo Box i have to clic twice so it display the list, the first time i mouse click it seems to display the list very very fast and then hide the list. Ive checked the events but no one seems to hace problems. Again, any idea?
[ November 14, 2007: Message edited by: Carlos A. Perez ]