RFR: 5108458: JTable does not properly layout its content

Tejesh R tr at openjdk.org
Thu Oct 26 10:19:45 UTC 2023


Table contents does not follow right-left Orientation when Max width of columns are set. This is due to not considering the offset in `x position` while painting table grid and table cell. The fix handles the offset and adjust the x position for each paint, similar to how header is painted. The fix is applied to both Basic and Synth Look and Feel. 
The fix is verified for all Look and Feel manually and test verifies on Metal L&F since automatic test cannot be generalized throughout other Look and Feel. 
CI tested is green for regression check and test check.

-------------

Commit messages:
 - Synth fix
 - Fix + Test

Changes: https://git.openjdk.org/jdk/pull/16374/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16374&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-5108458
  Stats: 293 lines in 3 files changed: 284 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/16374.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16374/head:pull/16374

PR: https://git.openjdk.org/jdk/pull/16374


More information about the client-libs-dev mailing list