RFR: 8375573: JTable ignores setPreferredWidth during initial layout when AUTO_RESIZE_LAST_COLUMN is enabled
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon Jan 19 05:17:55 UTC 2026
AUTO_RESIZE_LAST_COLUMN handling was done in [JDK-8234071](https://bugs.openjdk.org/browse/JDK-8234071) but it didn't honour the preferred width if it is already been set for each column so when layouting is done, it only sees the `resizingColumn`
is set to AUTO_RESIZE_LAST_COLUMN and adjust only the last column and distribute width equally to all other column.
Fix is made to honour the user-set preferred column width even if auto-resize mode is set to LAST_COLUMN
-------------
Commit messages:
- jcheck
- 8375573: JTable ignores setPreferredWidth during initial layout when AUTO_RESIZE_LAST_COLUMN is enabled
- 8375573: JTable ignores setPreferredWidth during initial layout when AUTO_RESIZE_LAST_COLUMN is enabled
Changes: https://git.openjdk.org/jdk/pull/29291/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29291&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8375573
Stats: 102 lines in 2 files changed: 100 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/29291.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29291/head:pull/29291
PR: https://git.openjdk.org/jdk/pull/29291
More information about the client-libs-dev
mailing list