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