-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
generic
-
generic
Name: bsC130419 Date: 06/04/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
In JDK1.4beta, the following BasicXXXUI classes explicitly cast the LookAndFeel
to BasicLookAndFeel (for sound action support):
BasicInternalFrameUI
BasicMenuItemUI
BasicOptionPaneUI
BasicPopupMenuUI
More importantly, they do so in private or package access methods, which can not
be replaced without rewriting some higher level methods.
In previous releases of Swing, it was possible to use the BasicUI classes even
if one did not use BasicLookAndFeel, since they did not refer to it. With 1.4,
these LAFs are now broken (ClassCastExceptions during startup break them
immediately).
Please make the references either easily replacable (so that subclasses of
BasicUI delegates can still be used in custom UIs), optional (instanceof), or
move the necessary methods into LookAndFeel directly.
This would greatly simplify development of custom LookAndFeels.
(Review ID: 125737)
======================================================================
- duplicates
-
JDK-4632193 Swing Skins Look and Feel
-
- Resolved
-