• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtable repainting problem!!  RSS feed

 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am displaying live data on jtable.i am using addRow(Vector)
method.i used table.updateUI(),table.validate(),fireTableDataChanged() and etc. but still i am getting the
follwing exception.
plz can any one tell me the solution.
thanx in advance
bye

Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java, Comp
iled Code)
at javax.swing.plaf.basic.BasicTableUI.paintRow(BasicTableUI.java, Compi
led Code)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java, Compiled
Code)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java, Compiled Code)
at javax.swing.JComponent.paintComponent(JComponent.java, Compiled Code)
at javax.swing.JComponent.paint(JComponent.java, Compiled Code)
at javax.swing.JComponent.paintChildren(JComponent.java, Compiled Code)
at javax.swing.JComponent.paint(JComponent.java, Compiled Code)
at javax.swing.JViewport.paintViaBackingStore(JViewport.java, Compiled C
ode)
at javax.swing.JViewport.paint(JViewport.java, Compiled Code)
at javax.swing.JComponent.paintWithBuffer(JComponent.java, Compiled Code
)
at javax.swing.JComponent._paintImmediately(JComponent.java, Compiled Co
de)
at javax.swing.JComponent.paintImmediately(JComponent.java, Compiled Cod
e)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java, Com
piled Code)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
EventQueueUtilities.java, Compiled Code)
at javax.swing.SystemEventQueueUtilities.processRunnableEvent(SystemEven
tQueueUtilities.java, Compiled Code)
at javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(Sys
temEventQueueUtilities.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, C
ompiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!