This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226531

Summary: ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter
Product: platform Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198901
Attachments: stacktrace

Description Antonin Nebuzelsky 2013-02-22 12:38:44 UTC
Build: NetBeans IDE Dev (Build 20130222-0f5c15cdaa6a)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b19, Java(TM) SE Runtime Environment, 1.8.0-ea-b78
OS: Linux

User Comments:
anebuzelsky: Opened Plugins manager, with Dark Nimbus theme




Stacktrace: 
java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter
   at javax.swing.plaf.nimbus.NimbusStyle.getBorderPainter(NimbusStyle.java:778)
   at javax.swing.plaf.nimbus.SynthPainterImpl.paintBorder(SynthPainterImpl.java:116)
   at javax.swing.plaf.nimbus.SynthPainterImpl.paintPanelBorder(SynthPainterImpl.java:974)
   at javax.swing.plaf.synth.SynthPanelUI.paintBorder(SynthPanelUI.java:195)
   at javax.swing.plaf.synth.SynthBorder.paintBorder(SynthBorder.java:62)
   at javax.swing.JComponent.paintBorder(JComponent.java:947)
Comment 1 Antonin Nebuzelsky 2013-02-22 12:38:46 UTC
Created attachment 131731 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2013-02-22 13:36:13 UTC
This is not related to Dark Nimbus theme. The whole Nimbus l&f implementation is very fragile and breaks up when UI components are instantiated off the EDT thread.
Comment 3 Stanislav Aubrecht 2013-08-21 09:32:44 UTC

*** This bug has been marked as a duplicate of bug 230528 ***