Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6539061
Votes 0
Synopsis Cross platform print dialog slow first time because of call to GraphicsDevice.getConfigurations()
Category java:classes_2d
Reported Against
Release Fixed 7(b14), 6u2(b02) (Bug ID:2148092)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 26-MAR-2007
Description
Using JDK 1.6 my XP PC the cross-platform print dialog is taking a long time
to display first time. I initially put this down to non-existent and
network printers. But on investigation it seems we are tripping over
6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds
In fact on my system it was taking 6.7 seconds for each of the 2 cards.
That's 13 additional seconds a user sits waiting for the dialog to appear.

The reason its called is to get the bounds of all devices to fix
4929299: Dialog is not positioned properly if the coords are invalid, on Win32.

But in fact since the bounds are the same on all configs for each device,
we can just get the bounds for the default configuration. This takes no detectable
time at all.
Posted Date : 2007-03-26 23:06:54.0
Work Around
N/A
Evaluation
Use GraphicsDevice.getDefaultConfiguration().getBounds()
Posted Date : 2007-03-26 23:06:55.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang