I am trying to use JFileChooser to select files with this name format: LS48*.drv. at the same time I want to limit the user to look into only a specific directory say c:\data. So I don't want the user to be able to change directories or to other drive names. Base of my code segment below can you please provide me some hints:
m_fileChooser = new JFileChooser("c:\\data"); // looking for LS48*.drv files
m_fileChooser.setFileFilter(new FileNameExtensionFilter("drivers(*.drv, *.DRV)", "drv", "DRV"));