JDK-4989521 : GTK:OptionPane.errorIcon not point to GNOME's icons
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-02-05
  • Updated: 2005-12-15
  • Resolved: 2005-12-15
Related Reports
Duplicate :  
Description
###@###.### 2004-02-05

Shouldn't the GTK L&F be using GNOME's icons anyway, 
not bundling custom icons?

Application uses UIManager.getIcon("OptionPane.errorIcon"); 
to get an instance of the L&F's error icon. Under the GTK L&F, 
with the default GTK theme, this produces an error message:

  com.sun.java.swing.plaf.gtk.GTKLookAndFeel/icons/Error.gif not found.

Comments
EVALUATION Now we retrieve icons directly from GTK and do not bundle custom icons.
15-12-2005

EVALUATION Name: omR10226 Date: 02/20/2004 I can suggest a work around while. ======================================================================
25-09-2004

WORK AROUND Name: omR10226 Date: 02/20/2004 You could use DefaultLookup class to retrieve errorIcon, but really this class wasn't included to public API and its API may change in incompatable ways between dot dot releases and even patch releases. You should not rely on this class even existing. import sun.swing.DefaultLookup; ... Icon errIcon = (Icon)DefaultLookup.get(component, componentUI, "OptionPane.errorIcon"); ... ======================================================================
25-09-2004