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

JTable does not complete row repaint on random rows unless a row is selected.

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10
      Netbeans 12
      SDK 17.0.1
      java version "17.0.1" 2021-10-19 LTS
      Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
      Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      I have a large JTable (500 rows by 25 columns) located inside a JScrollPane. When I scroll the table using the vertical scroll bar random rows do not completely repaint. I tried commenting out all my code that updates the cells giving me a blank table and the problem still occurs.
      I found that if I select a row the problem goes away. I can select the row with the mouse or programmatically. If I select a row programmatically and clear the selection then the problem returns.
      I have found that if I switch to JDK 8 I do not see the problem at all.

      REGRESSION : Last worked in version 8u311


      CUSTOMER SUBMITTED WORKAROUND :
      Always have a row selected.

      FREQUENCY : always


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: