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

JTable with AUTO_RESIZE_OFF doesn't paint correctly when moving columns

    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 version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP 64-bit Version 5.2.3790
      (using 32-bit JDK/JRE)

      A DESCRIPTION OF THE PROBLEM :
      With the following setup of a JTable, when moving the rightmost column the column's data cells don't paint correctly:
      column resize mode = AUTO_RESIZE_OFF
      contained inside a scroll pane
      total column width is smaller than the scroll pane view



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      This is easily reproducible with SwingSet2 /jdk/demo/jfc/SwingSet2, start up SwingSet2.jar. Switch to the JTable demo. Change the Autoresize mode to Off. Grab the Favorite Food column and move it slowly to the right. As you move the column, the cells will begin to disappear, but the title will still show correctly.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Column data cells should show until they reach the right edge of the scroll pane.
      ACTUAL -
      Column data cells are obscured as if they are going behind some other control.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Use SwingSet2 JTable example.
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov
              Reporter:
              ryeung Roger Yeung (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: