How to set the filename filter for the file Dialog box provided by java so that when the file dialogbox is displayed only the files with specified extensions will be displayed in it.
Printable View
How to set the filename filter for the file Dialog box provided by java so that when the file dialogbox is displayed only the files with specified extensions will be displayed in it.
Use fileDialog.setFile("*.txt");