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

Page Ranges 'To Page' field must be populated based on Pageable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.1, 5.0
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b137
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_8, solaris_9, windows_98

      Description

      The Page Ranges fields in the cross-platform dialog on Solaris must be populated based on what pageable's getNumberOfPages() returns. If this method returns '0', then the page ranges fields in the print dialog must be disabled, not allowing the user to modify the value. If the value returned is greater than 0, then the 'To Page' field in the print dialog must reflect that value. Calling PrinterJob.printDialog() on solaris brings up a cross-platform dialog and the above said functionalities does not work on that dialog. The same method call on Windows brings up a native print dialog and the above functionalities work properly on the PIT build. (2 bugs have been filed on this before and they have been fixed for native dialog on the PIT build specified below).

      This functionality does not work on Solaris right from JDK1.4+.

      I have attached 2 sample codes. In one of them, the pageable implementation returns '0' for getNumberOfPages() and should make the page ranges fields disabled in this case. Another sample code will return '2' for getNumberOfPages() which should be reflected in the 'To Page' field of the page ranges in the cross-platform dialog.

      The PIT build in which the above said functionalities work for a Native Print Dialog.
      java version "2d-jcg-win-01-2003-06-22.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d-jcg-win-01-2003-06-22.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b09, mixed mode)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: