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

TitledPane layout issue

    XMLWordPrintable

    Details

      Description

      Try the attached nb project. Launch HelloLabelValuePane.
      Resize the window to double its width, then click on the "Stroke Type" CheckBox. The TitledPanes width is ~half the size of the window, when it should fill it. Now resize again the window : the layout is ok : the TitledPane fill correctly the window.

      After investigation, this is related to TitledPane prefWidth (which is not set btw). If we set the prefWidth to Long.MAX_VALUE, this workaround the issue. You can check this by uncommenting line 91 of LabelValueBun.java.
      To me, prefWidth should not interfere in TitledPane Layout in this case.

        Attachments

          Activity

            People

            Assignee:
            kwwong Kinsley Wong
            Reporter:
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: