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

The spec for Toolkit.setDynamicLayout() and Toolkit.isDynamicLayoutActive() needs to be clarified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • client-libs
    • b120

      Documantation for setDynamicLayout():
           * On platforms where dynamic layout during resizing is not supported
           * (or is always supported), setting this property has no effect.

      Documantation for isDynamicLayoutSet():
           * Note: this method returns the value that was set programmatically;

      Documantation for isDynamicLayoutActive():
           * Returns whether dynamic layout of Containers on resize is
           * currently active (both set in program
           *( {@code isDynamicLayoutSet()} )
           *, and supported
           * by the underlying operating system and/or window manager).
           
      So according to documentation "set" method can be ignored by the native system, but isDynamicLayoutActive takes into account isDynamicLayoutSet(), which always return value which was set.

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: