CheckBoxTree: coordinates of checkboxes

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

CheckBoxTree: coordinates of checkboxes

Postby DDJ4 » Mon Aug 25, 2008 6:52 am

I'm writing sort of an automation tool that uses Jemmy to drive GUI components one of which is going to be CheckBoxTree. The objection is to be able to perform mouse click on CheckBoxTree nodes' check boxes. For this I will need to find a way of determining checkboxes coordinates.
Question: is there a way to determinate coordinates of a specific checkbox? Could anybody suggest a solution?
Thank you.
DDJ4
 
Posts: 1
Joined: Mon Aug 25, 2008 6:15 am

Re: CheckBoxTree: coordinates of checkboxes

Postby JIDE Support » Mon Aug 25, 2008 9:23 am

We don't provide any public API for it. You can use JTree.getPathForLocation to find out the the tree path. If the CheckBoxTree#isCheckBoxVisible(path) is true, you can then check the x to make sure it is within a regular empty JCheckBox's preferred width to determine it is within the check box.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 55 guests