java.lang.ClassCastException: java.lang.Character cannot be cast to com.sun.java.swing.Painter

Coderanch | Roel Van Zeebroeck | 8 years 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

    Exception when using Nimbus LaF

    Coderanch | 8 years ago | Roel Van Zeebroeck
    java.lang.ClassCastException: java.lang.Character cannot be cast to com.sun.java.swing.Painter
  2. 0

    javax.swing.JScrollPane cannot be cast to javax.swing.AbstractButton after changing to SeaGlass Look and Feel

    Stack Overflow | 2 years ago | BuxHzk
    java.lang.ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.AbstractButton
  3. 0

    Crash report

    GitHub | 2 years ago | benjicraft
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.awt.Color
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash report rpw

    GitHub | 3 years ago | Midrag
    java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter
  6. 0

    Crash after opening Save-File Dialog

    GitHub | 3 years ago | Trissi2000
    java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter

  1. jpvee 1 times, last 2 months ago
  2. poroszd 1 times, last 12 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    java.lang.Character cannot be cast to com.sun.java.swing.Painter

    at com.sun.java.swing.plaf.nimbus.NimbusStyle.getBackgroundPainter()
  2. Java RT
    EventDispatchThread.run
    1. com.sun.java.swing.plaf.nimbus.NimbusStyle.getBackgroundPainter(NimbusStyle.java:821)
    2. com.sun.java.swing.plaf.nimbus.SynthPainterImpl.paintBackground(SynthPainterImpl.java:85)
    3. com.sun.java.swing.plaf.nimbus.SynthPainterImpl.paintSpinnerBackground(SynthPainterImpl.java:1776)
    4. javax.swing.plaf.synth.SynthSpinnerUI.update(SynthSpinnerUI.java:297)
    5. javax.swing.JComponent.paintComponent(JComponent.java:763)
    6. javax.swing.JComponent.paint(JComponent.java:1027)
    7. javax.swing.JComponent.paintChildren(JComponent.java:864)
    8. javax.swing.JComponent.paint(JComponent.java:1036)
    9. javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
    10. javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:277)
    11. javax.swing.RepaintManager.paint(RepaintManager.java:1217)
    12. javax.swing.JComponent._paintImmediately(JComponent.java:5070)
    13. javax.swing.JComponent.paintImmediately(JComponent.java:4880)
    14. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
    15. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
    16. javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
    17. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
    18. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    19. java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    20. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    21. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    22. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    25. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    25 frames