On Mon, 15 Jul 2024 08:46:20 GMT, Abhishek Kumar <[email protected]> wrote:

> I have a doubt for auto resize property, similar behavior is holding true for 
> `AUTO_RESIZE_NEXT_COLUMN` . If the user set the mode to 
> `AUTO_RESIZE_NEXT_COLUMN`, all columns are of same width and resized on 
> expanding of container window. As per the spec ( `AUTO_RESIZE_NEXT_COLUMN: 
> Use just the column after the resizing column. This results in the "boundary" 
> or divider between adjacent cells being independently adjustable.`) only the 
> next column should be resized not all the columns.
> 
> Is it the correct behavior ? If not, shouldn't `AUTO_RESIZE_NEXT_COLUMN` also 
> needs to be handle along with `AUTO_RESIZE_LAST_COLUMN` ? **or** user 
> implementation needs to be changed to handle this mode ?
> 
> _Otherwise current fix is working as expected for `AUTO_RESIZE_LAST_COLUMN`._

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

It seems to behave similarly with and without the fix, although it may not be 
what the spec is demanding..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...

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

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

Reply via email to