RFR: 8375573: JTable ignores setPreferredWidth during initial layout when AUTO_RESIZE_LAST_COLUMN is enabled [v2]

Tejesh R tr at openjdk.org
Fri Jan 23 05:08:48 UTC 2026


On Fri, 23 Jan 2026 03:31:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> 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

Marked as reviewed by tr (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29291#pullrequestreview-3695705474


More information about the client-libs-dev mailing list