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

javax.print.ServiceUI.printDialog Border/Margin Evaluation is bugged

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 5.0
    • client-libs
    • 2d
    • b124
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      For sucessfull Evaluation a Printer is needed which does not accept a Border/Margin of 0



      A DESCRIPTION OF THE PROBLEM :
      Invalid Margin Values (incompatible to MediaPrintableArea) are not validated correct.
      --------
      Also validation of incorrect input is late since validation occurs at the focuslost event. A User is able to enter an invalid value and press print without noticing that the entered value is actually incorrect. Perhaps print should not leave the dialog in that case.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1st case:
      set orientation: PORTRAIT
      set valid margins: top: 11,0 left: 12,0 right: 13,0 bottom: 14,0
      modify right margin to invalid: right: 0,0
      refocus to trigger validation, right margin remains invalid

      2nd case:
      set orientation: PORTRAIT
      set valid margins: top: 11,0 left: 12,0 right: 13,0 bottom: 14,0
      modify top margin to invalid: top 0,0
      refocus to trigger validation, top margin remains invalid
      the difference to the previous case is that modification of left/right/bottom restores the previous top value

      3rd case:
      set orientation: LANDSCAPE
      set valid margins: top: 11,0 left: 12,0 right: 13,0 bottom: 14,0
      modify bottom margin to invalid: bottom: 0,0
      refocus to trigger validation, bottom margin remains invalid

      4rd case:
      set orientation: LANDSCAPE
      set valid margins: top: 11,0 left: 12,0 right: 13,0 bottom: 14,0
      modify top margin to invalid: top: 0,0
      refocus to trigger validation, top margin remains invalid
      as in case 2 modification of a diffrent value restores the previous top value







      REPRODUCIBILITY :
      This bug can be reproduced always.

            psadhukhan Prasanta Sadhukhan
            jgodinez Jennifer Godinez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: