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

GridPaneDesignInfo.getCellBounds() breaks after adding a new RowConstraints to a GridPane

    Details

      Description

      To reproduce:
      1) Unzip the attached NB project (GridPaneTestV3.zip)
      2) Setup project with FX JAR path
      3) Run
           -> a window displays a GridPane with 2 cols and 3 rows (see GridPaneV3.png)
      4) Click 'Append a Row' button
           -> a new RowConstraints is added to the GridPane
           -> GridPaneDesignInfo.getRowCount() is displayed in terminal : 4 => OK
           -> GridPaneDesignInfo.getCellBounds() is invoked for all the cells of the first column
                 -> for cells (0, 0), (0, 1), (0,2) => OK
                 -> getCellBounds() throws ArrayIndexOutOfBoundsException: 3 for cells (0, 3) => BUG


      Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
      at javafx.scene.layout.GridPaneDesignInfo.getCellBounds(GridPaneDesignInfo.java:93)
      at test.MainWindow.onDelete(MainWindow.java:38)
      ... 42 more


      Tested with:

           [echo] Current SDK: Product: javafx-2.2.0beta
           [echo] Platform: macosx-universal
           [echo] Build-Number: 121
           [echo] Build-ID: 2012-07-03_20-48-05

        Attachments

        1. GridPaneTestV3.png
          19 kB
          Eric Le Ponner
        2. RT23281.diff
          1 kB
          Kinsley Wong

          Issue Links

            Activity

              People

              • Assignee:
                kwwong Kinsley Wong
                Reporter:
                eleponn Eric Le Ponner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: