Active FileFilter in JFileChooser
Ok, here is my problem:
I successfully installed 2 TextFilters to my JFileChooser. But unfortunately when i open the JFileChooser Window only the last added FileFilter is active...But i want to start this window with the common file filter (*.*). So how can i set the active FileFilter from beginning?
here is my Code:
fileChooser =new JFileChooser();
FileView fv =new ImageFileView();
fileChooser.setFileView(fv);
fileChooser.setFileFilter(new MyFileFilter(".pdf","Adobe Acrobat files (*.pdf)"));
fileChooser.setFileFilter(new MyFileFilter(".rtf","Rich Text Format files (*.rtf)"));
fileChooser.showOpenDialog(this);

