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

PIT:Setting Min Size bigger than current size enlarges the window but fails to revalidate, Sol-CDE

XMLWordPrintable

    • b61
    • x86, sparc
    • linux_sun, solaris_10
    • Verified

      The specification for setMinimumSize() claims that calling this method with a size smaller than the current resize would automatically enlarge the window to the specified min size. When I do this with respect to a 'Window' object, the window gets enlarged but the components inside the window are not re-aligned properly according to the new size. Basically it fails to invalidate and validate the components present inside the window.

      This is reproducible only on SolarisSparc10-CDE and not reproducible on GNOME. This is reproducible only for java.awt.Window and not reproducible for Frame and Dialog. This is not reproducible on Win32 as well.

      Here is the PIT build:
      java version "1.6.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-df153228_24_aug_2005_01_49-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b48, mixed mode)

      I have attached a sample test. Execute the sample test.
      1. You would see a frame with 4 buttons.
      2. Click on 'Show Dialog' button. A dialog will appear.
      3. Click on 'Show Window' button. A window will appear.
      4. Click on 'Toggle Min Size' button. The default min size will be reset.
      5. Click on 'Reduce Size' button repeatedly a few times until Window becomes smaller than 100, 100.
      6. Click on 'Toggle Min Size' button now. This would set the min size to 200, 200.

      Now you would see window being resized to 200, 200 but components are still aligned within the old bounds.

            vbaranovsunw Vyacheslav Baranov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: