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.
Summary: | CCE: org.netbeans.lib.profiler.ui.components.FilterComponent cannot be cast to javax.swing.JComboBox | ||
---|---|---|---|
Product: | profiler | Reporter: | Jindrich Sedek <jsedek> |
Component: | Base | Assignee: | Jiri Sedlacek <jis> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | VISUALVM |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=40178 | ||
Issue Type: | DEFECT | Exception Reporter: | 40178 |
Attachments: | stacktrace |
Description
Jindrich Sedek
2008-05-26 14:20:09 UTC
Created attachment 61917 [details]
stacktrace
This happens only in JDK6 update 10 on GTK L&F. *** Issue 135202 has been marked as a duplicate of this issue. *** Fixed for 6.5 M1. changeset: 84957:a5dcc82812e3 user: Jiri Sedlacek <jis@netbeans.org> date: Wed Jun 18 17:57:35 2008 +0200 summary: Bugfix #131730 Do not set JComboBox border for custom JComponent on GTK Note -- "Bugfix #131730" is incorrect, should be "Bugfix #135812" Integrated into 'main-golden', available in NB_Trunk_Production #285 build Changeset: http://hg.netbeans.org/main/rev/a5dcc82812e3 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #131730 Do not set JComboBox border for custom JComponent on GTK verified. NetBeans IDE Dev (Build 200807030102) *** Issue 139595 has been marked as a duplicate of this issue. *** *** Issue 123749 has been marked as a duplicate of this issue. *** Exactly the same problem occurs when running NetBeans IDE on Nimbus LaF - available since JDK 6 update 10 (currently RC) on Windows/Linux/Solaris: java.lang.ClassCastException: org.netbeans.lib.profiler.ui.components.FilterComponent cannot be cast to javax.swing.JComboBox at com.sun.java.swing.plaf.nimbus.ComboBoxEditableState.isInState(ComboBoxEditableState.java:21) at com.sun.java.swing.plaf.nimbus.State.isInState(State.java:109) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getExtendedState(NimbusStyle.java:1003) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getBorderPainter(NimbusStyle.java:886) at com.sun.java.swing.plaf.nimbus.SynthPainterImpl.paintBorder(SynthPainterImpl.java:102) at com.sun.java.swing.plaf.nimbus.SynthPainterImpl.paintComboBoxBorder(SynthPainterImpl.java:468) at javax.swing.plaf.synth.SynthComboBoxUI.paintBorder(SynthComboBoxUI.java:302) at javax.swing.plaf.synth.SynthBorder.paintBorder(SynthBorder.java:46) at javax.swing.border.CompoundBorder.paintBorder(CompoundBorder.java:94) at javax.swing.JComponent.paintBorder(JComponent.java:922) at javax.swing.JComponent.paint(JComponent.java:1028) [...] Note that Nimbus LaF isn't used by default, it has to be manually invoked by starting the IDE with --ui "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel". The only workaround for now is to not use the Nimbus LaF when using profiling features in the IDE. Original problem on GTK LaF is workarounded in 6.5 Milestone 1, problem on Nimbus LaF is workarounded for 6.5. changeset: 97859:26bdb73fae1c date: Tue Aug 26 16:48:21 2008 +0200 summary: Bugfix #135812 Workaround for CCE from FilterComponent: hardcoded border on Nimbus Integrated into 'main-golden', available in build *200809011401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/26bdb73fae1c User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #135812 Workaround for CCE from FilterComponent: hardcoded border on Nimbus *** Issue 146368 has been marked as a duplicate of this issue. *** v. |