java.lang.ClassCastException: javax.swing.table.DefaultTableCellRenderer$UIResource cannot be cast to javax.swing.text.JTextComponent

GitHub | sylvanaar | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 9#233193006

    GitHub | 9 months ago | sylvanaar
    java.lang.ClassCastException: javax.swing.table.DefaultTableCellRenderer$UIResource cannot be cast to javax.swing.text.JTextComponent

    Root Cause Analysis

    1. java.lang.ClassCastException

      javax.swing.table.DefaultTableCellRenderer$UIResource cannot be cast to javax.swing.text.JTextComponent

      at javax.swing.text.html.EditableView.paint()
    2. Java RT
      JViewport.paint
      1. javax.swing.text.html.EditableView.paint(EditableView.java:76)
      2. javax.swing.text.BoxView.paintChild(BoxView.java:161)
      3. javax.swing.text.BoxView.paint(BoxView.java:433)
      4. javax.swing.text.BoxView.paintChild(BoxView.java:161)
      5. javax.swing.text.BoxView.paint(BoxView.java:433)
      6. javax.swing.text.ParagraphView.paint(ParagraphView.java:580)
      7. javax.swing.text.html.ParagraphView.paint(ParagraphView.java:233)
      8. javax.swing.text.BoxView.paintChild(BoxView.java:161)
      9. javax.swing.text.BoxView.paint(BoxView.java:433)
      10. javax.swing.text.html.BlockView.paint(BlockView.java:282)
      11. javax.swing.text.BoxView.paintChild(BoxView.java:161)
      12. javax.swing.text.BoxView.paint(BoxView.java:433)
      13. javax.swing.text.html.BlockView.paint(BlockView.java:282)
      14. javax.swing.plaf.basic.BasicHTML$Renderer.paint(BasicHTML.java:481)
      15. javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:173)
      16. javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
      17. javax.swing.JComponent.paintComponent(JComponent.java:777)
      18. javax.swing.JComponent.paint(JComponent.java:1053)
      19. javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
      20. javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2115)
      21. javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2016)
      22. javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1812)
      23. javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
      24. javax.swing.JComponent.paintComponent(JComponent.java:777)
      25. javax.swing.JComponent.paint(JComponent.java:1053)
      26. javax.swing.JComponent.paintChildren(JComponent.java:886)
      27. javax.swing.JComponent.paint(JComponent.java:1062)
      28. javax.swing.JViewport.paint(JViewport.java:744)
      28 frames
    3. IDEA
      JBViewport.paint
      1. com.intellij.ui.components.JBViewport.paint(JBViewport.java:171)
      1 frame
    4. Java RT
      EventQueue.dispatchEvent
      1. javax.swing.JComponent.paintChildren(JComponent.java:886)
      2. javax.swing.JComponent.paint(JComponent.java:1062)
      3. javax.swing.JComponent.paintChildren(JComponent.java:886)
      4. javax.swing.JComponent.paint(JComponent.java:1062)
      5. javax.swing.JComponent.paintChildren(JComponent.java:886)
      6. javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
      7. javax.swing.JComponent.paint(JComponent.java:1062)
      8. javax.swing.JComponent.paintChildren(JComponent.java:886)
      9. javax.swing.JComponent.paint(JComponent.java:1062)
      10. javax.swing.JComponent.paintChildren(JComponent.java:886)
      11. javax.swing.JComponent.paint(JComponent.java:1062)
      12. javax.swing.JComponent.paintChildren(JComponent.java:886)
      13. javax.swing.JComponent.paint(JComponent.java:1062)
      14. javax.swing.JComponent.paintChildren(JComponent.java:886)
      15. javax.swing.JComponent.paint(JComponent.java:1062)
      16. javax.swing.JComponent.paintChildren(JComponent.java:886)
      17. javax.swing.JComponent.paint(JComponent.java:1062)
      18. javax.swing.JComponent.paintChildren(JComponent.java:886)
      19. javax.swing.JComponent.paint(JComponent.java:1062)
      20. javax.swing.JComponent.paintChildren(JComponent.java:886)
      21. javax.swing.JComponent.paint(JComponent.java:1062)
      22. javax.swing.JComponent.paintChildren(JComponent.java:886)
      23. javax.swing.JComponent.paint(JComponent.java:1062)
      24. javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
      25. javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1532)
      26. javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1455)
      27. javax.swing.RepaintManager.paint(RepaintManager.java:1252)
      28. javax.swing.JComponent._paintImmediately(JComponent.java:5165)
      29. javax.swing.JComponent.paintImmediately(JComponent.java:4976)
      30. javax.swing.RepaintManager$3.run(RepaintManager.java:811)
      31. javax.swing.RepaintManager$3.run(RepaintManager.java:794)
      32. java.security.AccessController.doPrivileged(Native Method)
      33. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      34. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:794)
      35. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:769)
      36. javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:718)
      37. javax.swing.RepaintManager.access$1100(RepaintManager.java:62)
      38. javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1680)
      39. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      40. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
      41. java.awt.EventQueue.access$400(EventQueue.java:97)
      42. java.awt.EventQueue$3.run(EventQueue.java:697)
      43. java.awt.EventQueue$3.run(EventQueue.java:691)
      44. java.security.AccessController.doPrivileged(Native Method)
      45. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      46. java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
      46 frames
    5. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    6. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames