Getting the coordinates of Javax.Swing.Tree items
We have swing tree objects where the user drags an item from one tree to another tree. When this action gets recorded in Jscript it ends up with x, y coordinates like this: object. drag(132, 245, 55, 78) These statements are sensitive to screen resolution and the size of the application window. The issue is that I can locate the items in the tree using either the name of the item, e.g.,: Dest.ClickItem("null|end_of_the_road|Segment_1|Segment Field_8"); Or using the wItems e.g.,: Src.wItems.Item(0).Items.Item(0).Items.Item(12).Click(0); But what I eally want to know is where the item is located. Typically with objects I can use their top, height, and width properties and then replace the drags with a function that will calculate the drag coordinates at run time thus removing the issues of size and resolution. Does anyone know how to figure out the location on the screenof the node of a swing tree?Solved1.9KViews0likes2CommentsUnable to access Swing objects
Hello Folks, We are not able to access below Swing object(Table), no methods are available to access the Table row/column or even cell !! Sys.Process("javaw").SwingObject("UIServices$2", "TradeBlade: User: TUTFUS31(kevinwise): raw://170.198.112.32:5463", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JDesktopPane", "", 0).SwingObject("JInternalFrame", "RFQ Manager", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JideScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("CollapsiblePanes", "", 0).SwingObject("JideSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("JideSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("PreviewQuoteRequestPanel", "", 0).SwingObject("JViewport", "", 0).SwingObject("FXOPreviewQuoteRequestTable", "", 0) * While recording this table in testcomplete it creates below code where it only clicks on the object instead of accessing the methods to select cell or operate cell. Set FXOPreviewQuoteRequestTable = internalFrame.PreviewQuoteRequestPanel.Viewport.FXOPreviewQuoteRequestTable Call FXOPreviewQuoteRequestTable.Click(21, 8) Call FXOPreviewQuoteRequestTable.Click(307, 7) Call FXOPreviewQuoteRequestTable.Click(615, 60) Call javaw.dialog03.RootPane.null_layeredPane.null_contentPane.RFQCreateQuotePanel.Panel.JideButton2.Click(18, 14) If anyone have faced this issue, please share the methods/way to access these objects. Thanks in Advance.. Cheers !! Kavan Shah1.8KViews0likes4Comments