Ask a Question

JTableHeader - Control does not contain JTable properties

jmoe
Contributor

JTableHeader - Control does not contain JTable properties

Hello,

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.

 

Thanks.

3 REPLIES 3
Marsha_R
Champion Level 3

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. 

Marsha_R
Champion Level 3

I would ask Support about that directly.  Here's the link:

https://support.smartbear.com/testcomplete/message

cancel
Showing results for 
Search instead for 
Did you mean: