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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b120

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: