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

PIT: Documentation for pack() method is not updated to reflect the impact of min size

XMLWordPrintable

    • b03
    • generic
    • generic
    • Not verified

        The definitions for window.setMinimumSize(), setSize(), setBounds() are updated in the current mustang PIT where the minimum size set by the developer for a window is enforced properly now. A window will not be allowed to be resized smaller than the specified minimum size from Mustang-b51.

        The same definition is applicable for pack() also where window.pack() must actually honor the minimum size specified in the application in the same way as some of the other methods such as setSize() and setBounds(). But currently the CCC request does not say anything about the impact of min size on the pack() method. The method definition for pack() must be updated appropriately defining the impact of setting the minimum size.

        However, this scenario seems to work fine with the current implementation where pack() method honors the min size setting and ensures that the frame is not sized smaller than the min size specified.

        The PIT build where these changes are available:
        java version "1.6.0-internal"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-java2d_24_aug_2005_05_24-b00)
        Java HotSpot(TM) Client VM (build 1.6.0-ea-b48, mixed mode, sharing)

              anthony Anthony Petrov (Inactive)
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: