Ask a Question

JTableHeader - Control does not contain JTable properties

jmoe
Occasional 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
Community Hero

Re: JTableHeader - Control does not contain JTable properties

This may be of some help:

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/jtable/index.html

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
jmoe
Occasional Contributor

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. 

Marsha_R
Community Hero

Re: haRe: JTableHeader - Control does not contain JTable properties

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

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

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: