remove File type label and comboBox in JFileChooser

I want to use JFileChooser as a directory chooser. So I want to remove the File type label and comboBox from the GUI.

I am running the application on NT. And the UI that was used by JFileChooser is com.sun.java.swing.plaf.windows.WindowFileChooserUI. I don't see this class in Sun's document.

Is there a good way to remove the File type label and comboBox from JFilechooser GUI?

[408 byte] By [lingf] at [2007-9-26 3:25:42]
# 1
As far as I know, there is no way to remove that combobox. You could maybe set up a FileFilter in such a way as to screen all file types, then set the description to 'Directories' or something like that. Not much help I'm afraid.....m
wywiwyg at 2007-6-29 11:46:49 > top of Java-index,Archived Forums,Swing...