On Wed, 8 Nov 2023 08:49:45 GMT, Prasanta Sadhukhan <psadhuk...@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