RFR: 5108458: JTable does not properly layout its content [v3]

Tejesh R tr at openjdk.org
Wed Nov 8 09:02:00 UTC 2023


On Wed, 8 Nov 2023 08:49:45 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> > similar to how header is painted
> 
> Can you please point to the code where the header is painted similarly?

[HeaderRect](https://github.com/openjdk/jdk/blob/8555e0f6c40c045f7763777a9bf976de99c0534c/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java#L377) is used in [cellRect](https://github.com/openjdk/jdk/blob/8555e0f6c40c045f7763777a9bf976de99c0534c/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableHeaderUI.java#L675) which computes and thus handles the `X position` offset.

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

PR Comment: https://git.openjdk.org/jdk/pull/16374#issuecomment-1801356593


More information about the client-libs-dev mailing list