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