JDK-8276310 : JTable does not complete row repaint on random rows unless a row is selected.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-11-01
  • Updated: 2021-11-02
  • Resolved: 2021-11-02
Related Reports
Duplicate :  
Description
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



Comments
This issue duplicates to JDK-8258969
02-11-2021