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

Write a regression test for JDK-4615365

    XMLWordPrintable

Details

    • b16
    • generic
    • generic

    Backports

      Description

        Write a regression test for JDK-4615365 : JSplitPane current and last divider positions incorrect when realized

        Issue:
        JSplitPane component with a left and right component has its current divider
        position incorrectly set to -1 once it is fully realized. For JDK 1.3.1, its
        value is set to 0. The current position of the divider should be the current
        position of the divider once layout management is complete. If the divider is
        moved one pixel, the current divider position is updated to the correct value
        but the last divider position is then set to -1 (i.e. the last value of the
        current divider position). If the divider is moved again, everything is OK.

        Testing:
        Java 1.4.0 -> Test Failed.
        $ j2sdk1.4.0/bin/java bug4615365
        current= -1, last= 0
        Test Failed.

        Java 1.4.1 -> Test Passed.
        $ j2sdk1.4.1/bin/java bug4615365
        current= 97, last= -1
        Test Passed.

        Attachments

          Issue Links

            Activity

              People

                mvs Manukumar V S
                mvs Manukumar V S
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: