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

Editing in TableView breaks the layout, when the document is I18n

    Details

    • Subcomponent:
    • Resolved In Build:
      b161
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "9-ea"
        Java(TM) SE Runtime Environment (build 9-ea+119)
        Java HotSpot(TM) 64-Bit Server VM (build 9-ea+119, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Linux Mageia 5.

        A DESCRIPTION OF THE PROBLEM :
        1- Beware, the display (with java 9 119) for I18nLayoutTest.java is not the same with i18n true (bad display) and with i18n false (good display). With i18n true, the table go down.

        JDK 9 b119 corrects JDK-8133864 bug, but it introduices a bad display of the table which go down.

        ( I18nLayoutTest.java is a test program of the OpenJDK.
        It's the same program I sent for the previous Bugs JDK-7169915 and JDK-8133864 ).

        2- Please, please ... could someone examine again the patch for JDK-7169915 that I suggested 4 years ago ? I really need it to implement table, matrix, ... display in my application. I've spent long time in 2012 to find what was wrong in tableview. I know Victor's comment was not good but you could compare with the tableview implementation in the swing/text/html package which works fine.

        REGRESSION. Last worked in version 8u92

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Put the document I18n property false :
        putProperty("i18n", Boolean.FALSE);
        the display is right (a text with a table) when we insert text.

        Put the document I18n property true :
        putProperty("i18n", Boolean.TRUE);
        the table goes down when we insert text.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The table stays in the same line when we insert text, like i18n false.
        ACTUAL -
         When i18n true, the table goes down when we insert text.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        ( I18nLayoutTest.java is a test program of the OpenJDK.
        It's the same program I sent for the previous Bugs JDK-7169915 and JDK-8133864 ).
        ---------- END SOURCE ----------

          Attachments

          1. 8u92b31_i18n-false.png
            8u92b31_i18n-false.png
            298 kB
          2. 8u92b31_i18n-true.png
            8u92b31_i18n-true.png
            265 kB
          3. 9ea119_i18n-false.png
            9ea119_i18n-false.png
            202 kB
          4. 9ea119_i18n-true.png
            9ea119_i18n-true.png
            235 kB
          5. 9ea120_i18n-false.png
            9ea120_i18n-false.png
            190 kB
          6. 9ea120_i18n-true.png
            9ea120_i18n-true.png
            222 kB
          7. CodeBug.java
            9 kB

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: