-
Enhancement
-
Resolution: Won't Fix
-
P4
-
1.4.2
-
x86
-
windows_xp
Name: rmT116609 Date: 11/20/2003
A DESCRIPTION OF THE REQUEST :
The class com.sun.java.swing.plaf.windows.XPStyle is package-local. This means that it is not possible to access XPStyle in a custom Look and Feel which extends the Windows Look and Feel.
JUSTIFICATION :
The class XPStyle determines whether the UI is currently using Windows XP appearance. It contains details of colors, borders etc., and without access to this class it is difficult for a developer to access an attribute of the Look and Feel, for example the text color of a disabled button.
There is no disadvantage to making the class public, and the change could be made with almost no effort and no side-effects.
CUSTOMER SUBMITTED WORKAROUND :
There are two possible workarounds, neither of them satisfactory:
1. Duplicating the code from XPStyle in my own code.
2. Hard-coding the attributes that should be determined dynamically.
(Incident Review ID: 226993)
======================================================================
A DESCRIPTION OF THE REQUEST :
The class com.sun.java.swing.plaf.windows.XPStyle is package-local. This means that it is not possible to access XPStyle in a custom Look and Feel which extends the Windows Look and Feel.
JUSTIFICATION :
The class XPStyle determines whether the UI is currently using Windows XP appearance. It contains details of colors, borders etc., and without access to this class it is difficult for a developer to access an attribute of the Look and Feel, for example the text color of a disabled button.
There is no disadvantage to making the class public, and the change could be made with almost no effort and no side-effects.
CUSTOMER SUBMITTED WORKAROUND :
There are two possible workarounds, neither of them satisfactory:
1. Duplicating the code from XPStyle in my own code.
2. Hard-coding the attributes that should be determined dynamically.
(Incident Review ID: 226993)
======================================================================