On Thu, 6 Aug 2026 14:56:00 GMT, Andy Goryachev <[email protected]> wrote:
>> it is needed because it is JTable/TableColumn’s default width and there's no >> constant for it as of now >> It was already discussed in >> https://github.com/openjdk/jdk/pull/29291#discussion_r2711110938 > > my point is that this condition might happen after initialization - the user > could, in theory, set all the columns to width 75 manually or > programmatically. what would happen in that case? > > additionally, what would happen if the column model gets changed with the > column widths just so this method fails to detect the initial scenario? > > would it be better to simply introduce a boolean flag (and possibly reset it > when model is changed, and possibly in other scenarios)? this is to gauge initial layout. I have introduced a boolean flag to ensure if initial layout is done, then preserve user's current column widths and if the table width changed, only the last column should absorb the difference ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31704#discussion_r3733562827
