Skip to content
Advertisement

Getting location of cell in JXTreeTable

How to determine the location of a particular cell in JXTreeTable on screen?

Advertisement

Answer

not sure, but merging some information gathered on topic.

So final solution could theoretically just calling method (from JTable API):

public Rectangle getCellRect(int row, int column, boolean includeSpacing)

And if needed then using SwingUtilities.convertRectangle get the exact screen placement.

Honestly, I’d be quite curious if it works if you give it a try 🙂

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement