Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6539061

Cross platform print dialog slow first time because of call to GraphicsDevice.getConfigurations()

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
      6
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  prr Philip Race
                  Reporter:
                  prr Philip Race
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: