在1.4.2中已经有了改进JFileChooser Performance Enhancements The bugtraq reports that correspond to this change are: 4679673 and 4712307. This release features many performance improvements to JFileChooser. In some situations, JFileChooser now performs 300 times faster.
至于你那个还有没有别的写法我好像没见过
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4679673
The bugtraq reports that correspond to this change are: 4679673 and 4712307. This release features many performance improvements to JFileChooser. In some situations, JFileChooser now performs 300 times faster.