JTableHeader - Control does not contain JTable properties
By default JTableHeader is a correctly configured control in TestComplete that falls under a Table in Object Mapping Swing controls. So I expected similar properties as a JTable to be available. However, in our application, when accessing the JTableHeader, JTable properties such as wColumn, wColumnCount are not available. I did find a native method (getTable()) that returns a JTable object, but then what do I do with that in order to use TestComplete API on that object? Please advise of the best path forward.
Re: JTableHeader - Control does not contain JTable properties
This may be of some help:
haRe: JTableHeader - Control does not contain JTable properties
Thanks Marsha. Yes, familiar with that info. The problem is JTableHeader does not behave like a JTable, but seems it should. I'm also wondering how to handle objects that are returned from native calls as that strategy may provide a solution. However, in my experience, the only time native calls actually "work" are when primitives (strings/ints/bools) are used as method parameters and/or return values. When an object is returned from a native call (such as a Java call), I am unsure of how that Java object can then be used within TestComplete. Thx.
Re: haRe: JTableHeader - Control does not contain JTable properties
I would ask Support about that directly. Here's the link: