Have either of you been able to set the JFileChooser's background to
something other than the default gray? I've tried several ways but
nothing works. Anjit's way of setting ui defaults has finally worked for
setting the FC's title and button text (although not the Open or Save
tooltip text). (Same observation for Dialog boxes such as JOptionPane.)

Here's what I tried:
Object[] uiDefaults = {
    "FileChooser.background", MYCOLOR,
  };
UIDefaults df = new UIDefaults(uiDefaults);
or >> df.putDefaults(uiDefaults);

--- and ---
UIManager.put("FileChooser.background", MYCOLOR);
...
SwingUtilities.updateComponentTreeUI(frm);  // frm is a JFrame


Thanks for your input.
--
Marie.
~~~~~~~~~~~~~~/\~~~~~~O-O~~~~~~~
A. Marie Alm, Sr. Software Engineer
0-In Design Automation, San Jose, Ca.
"that's the number zero"   http://www.0-In.com
~~~~~~~~~~~~~~\/~~~~~~~~~~~~~~~~


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to