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 - ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter
Summary: ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be...
Status: RESOLVED DUPLICATE of bug 230528
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 12:38 UTC by Antonin Nebuzelsky
Modified: 2013-08-21 09:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 198901


Attachments
stacktrace (2.42 KB, text/plain)
2013-02-22 12:38 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***