我的AMD1600+ 512M DDR 也觉得出慢呀.

解决方案 »

  1.   

    首先需要排除你机器配置的原因。记得这个是1.4里面的一个bug,据称在1.5里面改进了症状就是某个文件夹下有很多文件的时候(数以千计),JFileChoose会变得异常慢
      

  2.   

    java程序是比别的程序慢的
    至于你那个还有没有别的写法我好像没见过
      

  3.   

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4712307
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4679673
      

  4.   

    在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.