RFR: 8234071: JTable.AUTO_RESIZE_LAST_COLUMN acts like AUTO_RESIZE_ALL_COLUMNS

Abhishek Kumar abhiscxk at openjdk.org
Mon Jul 15 09:31:51 UTC 2024


On Mon, 15 Jul 2024 09:22:05 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Not sure about the spec you are referring to? I see https://docs.oracle.com/en/java/javase/22/docs/api/java.desktop/javax/swing/JTable.html#AUTO_RESIZE_NEXT_COLUMN `When a column is adjusted in the UI, adjust the next column the opposite way.`

I was referring to the description of `AUTO_RESIZE_NEXT_COLUMN` in [doLayout](https://docs.oracle.com/en/java/javase/22/docs/api/java.desktop/javax/swing/JTable.html#doLayout()) API.

> It seems to behave similarly with and without the fix, although it may not be what the spec is demanding.

Yeah, that's what I was trying to say that changes may be required for `AUTO_RESIZE_NEXT_COLUMN` as it is not as per spec.


It is not similar to LAST_COLUMN spec so cannot be handled along with it..I guess it's a separate issue, if it is one...
Ok.

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

PR Comment: https://git.openjdk.org/jdk/pull/20107#issuecomment-2228067169


More information about the client-libs-dev mailing list