JDK-8027808 : UIManager.getIcon(iconKey) does not return tree icons in GTK LAF
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u65,7u45,8
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux
  • Submitted: 2013-11-04
  • Updated: 2018-08-30
  • Resolved: 2018-08-30
Related Reports
Relates :  
Description
UIManager.getIcon(iconKey) does not return tree icons in GTK LAF, thus breaking the UIManager public contract for getIcon() which states specifically that it will return an icon if given an icon key.
Custom tree like components therefore cannot reuse these icons and will lose fidelity with the current LAF.

This affects systems with GTK LAF, such as Linux. This has been verified in JDK1.6 and JDK1.7. 

Compile and run the attached program on Linux, and you'll see how the icon is painted in Metal LAF but not in GTK LAF.

Comments
Yes, it is reproducible with jdk8 too. Seems something goes wrong during retrieving an icon. The UIManager.getIcon contract is not broken: * Returns an <code>Icon</code> from the defaults. If the value for * {@code key} is not an {@code Icon}, {@code null} is returned.
06-11-2013

SAM, please evaluate from New to Open, is it affected jdk8?
05-11-2013