Java FileDialog.setFilenameFilter does not work in Windows
FileDialog.setFilenameFilter javadoc
"Filename filters do not function in Sun's reference implementation for Microsoft Windows." Isn't it awful? Apparently this was recognized way back in 1997, and it was decided to do nothing about it. That is, MS said it was Sun's problem, and Sun said it was Microsoft's problem. The bug report thread has a few workarounds. Specifically,
"Filename filters do not function in Sun's reference implementation for Microsoft Windows." Isn't it awful? Apparently this was recognized way back in 1997, and it was decided to do nothing about it. That is, MS said it was Sun's problem, and Sun said it was Microsoft's problem. The bug report thread has a few workarounds. Specifically,
dlgFile.setFile("*.txt; *.rtf");
worked for me. But it's ugly and unnatural. *Sigh*...
0 Comments:
Post a Comment
<< Home