United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6631956 Nimbus: ClassCastException when running with MultiLookAndFeel
JDK-6631956 : Nimbus: ClassCastException when running with MultiLookAndFeel

Details
Type:
Bug
Submit Date:
2007-11-20
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2010-05-03
Component:
client-libs
OS:
generic,solaris_10
Sub-Component:
javax.swing
CPU:
sparc,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u21 (b04)

Related Reports
Duplicate:

Sub Tasks

Description
When using Nimbus with MultiLookAndFeel (triggered by adding an Axiliary L&F), a ClassCastException is thrown. Presumably, Nimbus is not aware of MultiLookAndFeel.

Sample code to reproduce the bug is available at:
http://www.pbjar.org/Nimbus/NimbusBug.jar
(attached)

It contains source code and the compiled class files and is a runnable jar file.

Steps to reproduce the problem:
- Install Java 6uN Early Access.
- Run bug.nimbus.BugSample (or execute the jar file) and select the Nimbus L&F from the menu.

                                    

Comments
EVALUATION

Synth's DefaultMenuLayout assumes UI is always SynthPopupMenuUI so it does a blind cast. It needs to be made aware of MultiUIs.
                                     
2010-03-19



Hardware and Software, Engineered to Work Together