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

RFE: Can't inherit the icons of a LookAndFeel for a custom LookAndFeel

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.0
    • client-libs



      Name: jk109818 Date: 06/11/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :Microsoft Windows 2000
      [Version 5.00.2195]


      A DESCRIPTION OF THE PROBLEM :
      As described in
      http://developer.java.sun.com/developer/bugParade/bugs/44056
      71.html the user should copy the icons out of the plaf to
      the own LookAndFeel implementation or reregister the Icons
      with the correct classname.

      The deadlock is that in future Jdk releases some new icons
      may appear that are used e.g. from the JFileChooser which
      will cause the created version crashing with a NullPointer
      because of missing icons.

      What we need is a possiblility to inherit the resources
      (specially icons) from the inherited LookAndFeel.

      I see different RFE's:
      1. Make LookAndFeel.makeIcon(final Class baseClass, final
      String gifFile) not static and so overwritable (we would
      then replace the baseClass with our inherited
      LookAndFeelClass
      2. Extend UIDefaults.LazyValue with a replacable
      class/resourceName so we can iterate over table.entrySet()
      in our initComponentDefaults and replace the
      UIDefault.LazyValues instead of getting null and not
      knowing which icon-name failed.
      3. Fix the used icon-resources of LookAndFeel for future
      Jdk releases.

      This bug can be reproduced always.
      (Review ID: 153458)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: