How to change the JFileChooser's color on the title?

I have a open JFeileChooser and I don't know why but the color changed to green in the open dialog window.
[114 byte] By [thana] at [2007-11-27 7:57:17]
# 1
having this line will give you the green dialogJDialog.setDefaultLookAndFeelDecorated(true);
Michael_Dunna at 2007-7-12 19:39:07 > top of Java-index,Desktop,Core GUI APIs...
# 2
Yes I have set JDialog.setDefaultLookAndFeelDecorated(true);But can I set the title color to other(such as gray)? Green looks ugly.
thana at 2007-7-12 19:39:07 > top of Java-index,Desktop,Core GUI APIs...
# 3

you can have a limited color range like this

import javax.swing.*;

import java.awt.*;

class Testing

{

public void buildGUI()

{

JDialog.setDefaultLookAndFeelDecorated(true);

JFrame f = new JFrame();

f.setLocationRelativeTo(null);

f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

JFileChooser fc = new MyFileChooser(".");

f.pack();

f.setVisible(true);

fc.showOpenDialog(f);

}

class MyFileChooser extends JFileChooser

{

public MyFileChooser(String currentDirectoryPath)

{

super(currentDirectoryPath);

}

protected JDialog createDialog(Component parent) throws HeadlessException

{

JDialog myDialog = super.createDialog(parent);

myDialog.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);

return myDialog;

}

}

public static void main(String[] args)

{

SwingUtilities.invokeLater(new Runnable(){

public void run(){

new Testing().buildGUI();

}

});

}

}

other options to try

NONE

FRAME

PLAIN_DIALOG

INFORMATION_DIALOG

ERROR_DIALOG

COLOR_CHOOSER_DIALOG

FILE_CHOOSER_DIALOG

QUESTION_DIALOG

WARNING_DIALOG

Michael_Dunna at 2007-7-12 19:39:07 > top of Java-index,Desktop,Core GUI APIs...