Forum Discussion

hogueybear's avatar
hogueybear
Occasional Contributor
10 years ago

How do I get the x y coordinates of a java swing table cell?

Just wondering if there is a way to get the x y coordinates of a cell in a java swing table, using jscript?

    • Colin_McCrae's avatar
      Colin_McCrae
      Community Hero

      Yep. That may well be the case.

       

      It sounds very similar to rhe "RECT" property of a TreeView Node object in Delphi. I need to use those to get co-ordinates relative to the tree container in order to apply a click to a custom checkbox.

       

      But the RECT property is only available via the debug agent (in Delphi land). So what Tanya is saying makes sense to me.

      • hogueybear's avatar
        hogueybear
        Occasional Contributor

        The Rectangle method worked to get me the x,y coordinates.  Thanks