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

reordering of headers in JTable breaks if not on the first page

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The reordering of columns in JTable is broken. You can't reorder JTable headers by dragging if you are not on the first page in the scrollpane


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      It is easy reproducable:

      - Start Swingset2.jar from the demo directory
      - select the JTable Demo
      - Select autoresize mode "off". This is only to force the table to get a scrollbar
      - resize the window so that "favorite Col" is only partly visible
      - scroll so you see "favorite Col", "favorite Movie", ""favorite Fastfood"
      - drag "favorite Movie" to the right as you want to put it at the last element.
      - pretty soon the table view switches to the first page, so you could *never* reorder table headers which are not on the first page.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      reordering of headers on every part of the table, when contained in a scrollpane
      ACTUAL -
      the view switches so you could not reorder headers that are not on the first page of the table

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      SwingSet2
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov
              Reporter:
              igor Igor Nekrestyanov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: