Possible Duplicate: How do I restrict JFileChooser to a directory?
JFileChooser FileC = new JFileChooser("C:\messy");
int result = FileC.showOpenDialog(this);
if( result == JFileChooser.CANCEL_OPTION )
{
return;
}
I have it starting from the folder C:\messy
, but currently a user can go to all directories from this starting position.