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

There is an error in documentation of "Class GraphicsConfiguration" not a bug

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
    • Resolved In Build:
      b67
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      java version "1.4.2_04"

      ADDITIONAL OS VERSION INFORMATION :
      windows xp version 2002 service pack 2

      A DESCRIPTION OF THE PROBLEM :
      There is an error in documentation of "Class GraphicsConfiguration" rather than a bug;
      under explainations of "getNormalizingTransform()" mothod there is 3
      lines of sample code as following:

            GraphicsConfiguration gc = g.getGraphicsConfiguration();

            g.setTransform(gc.getDefaultTransform());
            g.transform(gc.getNormalizingTransform());
       
      Error is here: g.getGraphicsConfiguration();
      such a method doesn't exists in Graphics2D class at all, the right one is
      getDeviceConfiguration().

      Regards.



      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            campbell Christopher Campbell (Inactive)
            Reporter:
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: