Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

JFileChooser still very slow in JDK 1.4.2-02 (re Bug Id  4712307)

Thread view: 
Jim Cobban - 11 Jan 2004 20:32 GMT
According to the Java Bug Database (Bug Id  4712307) the problem with
excessively slow JFileChooser is supposed to be fixed in 1.4.2.  However I
still find it takes eons to display even a very small directory.

How do I find out what is going on to solve this, since Sun keeps closing
the problem?

Signature

Jim Cobban   jcobban@magma.ca
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438

ak - 11 Jan 2004 23:26 GMT
> How do I find out what is going on to solve this, since Sun keeps closing
> the problem?

unfortunately, this is not the first bug which was just closed without any
real action.

____________

http://reader.imagero.com the best java image reader.
Mark Thornton - 12 Jan 2004 19:24 GMT
> According to the Java Bug Database (Bug Id  4712307) the problem with
> excessively slow JFileChooser is supposed to be fixed in 1.4.2.  However I
> still find it takes eons to display even a very small directory.
>
> How do I find out what is going on to solve this, since Sun keeps closing
> the problem?

Are you sure it isn't the OS itself? Some directories take an age to
enumerate in Windows Explorer. I think the problem is retrieving the
existence, status, icons etc for some of the special items. The addition
of a backup app has caused the enumeration of the local machine folder
on my (XP) machine to take ages on the first occasion.
There isn't a lot that Java can about this.

Mark Thornton
Jim Cobban - 12 Jan 2004 21:35 GMT
> Are you sure it isn't the OS itself? Some directories take an age to
> enumerate in Windows Explorer.

If that were the case then it would take a long time to see the contents of
this directory in Windows Explorer.  But that is not the case.  There are
only about 50 files in the directory, and Windows Explorer displays them
almost instantly.  It is only JFileChooser which takes a long time.

As I understand the description of the latest "fix" for Bug Id 4712307 it
improves performance, but only if you have not put in a custom file filter.
That is the fix appears to be that if there isn't a custom file filter then
JFileChooser issues a single call to the Win32 API to retrieve all of the
information, and then formats it.  If there is a file filter it issues
multiple calls to the Win32 API.  However a JFileChooser without a custom
file filter is not a terribly useful object in most applications.

If the performance hadn't been excellent in 1.3.1 I wouldn't make a big
issue of this, but there has been an extraordinary degradation in the move
to 1.4.  It takes orders of magnitude longer to display now.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.