Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4957661

Class XPStyle is package-local

XMLWordPrintable

      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)
      ======================================================================

            rupashka Pavel Porvatov (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: