RFR: 8375573: JTable ignores setPreferredWidth during initial layout when AUTO_RESIZE_LAST_COLUMN is enabled [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Jan 23 03:31:32 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
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
Bail out early if prefSize is set for a column
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29291/files
- new: https://git.openjdk.org/jdk/pull/29291/files/521aa029..622fc1fb
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29291&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29291&range=00-01
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 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