JTableHeader - Control does not contain JTable properties
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
