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

The ban on changing the window size does not change the size programmatically

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Linux / Mageia 7 / JDK 10.0.2

      A DESCRIPTION OF THE PROBLEM :
      The ban on changing the window size does not change the size programmatically.

      REGRESSION : Last worked in version 8u181

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a new template of JavaFX application.
      Apply the setResizable(false) method to Stage.
      Run.

      Warning: the problem may occur after several (3-5) startup attempts.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A window size of approximately 200x100.
      ACTUAL -
      A window size of approximately 1x20.

      ---------- BEGIN SOURCE ----------
      https://gist.github.com/MrChebik/20cf78672e4c25f4ac1ef22867a8a037
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Do not use setResizable.
      Instead, use:
      * setMinWidth & setMaxWidth
      * setMinHeight & setMaxHeight.

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              pmangal Priyanka Mangal (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: