Forum Discussion

ajitkumar163's avatar
ajitkumar163
Occasional Contributor
11 years ago

Unable to click a cell in java table using the (Row,Column) value

Hi,

 

My application is desktop application build with java.I have a jtable and I want to click a particular cell so that the cell will become editable and I can enter some value.

The problem I am facing is I am unable to find the cell object.I used "Call grid.ClickCell (RowIdx, ColumnName)" from "http://support.smartbear.com/viewarticle/63317/" but it is not working for me .

 

 I used "Call tab.setvalueat("test",1,10)" this also not working, even not showing any error message

 

Table object is Set tab=Sys.Process("Project").SwingObject("MainFrame", "*", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 0).SwingObject("JideSplitPane", "", 0).SwingObject("MainScrollWindow", "", 0).SwingObject("MainScrollWindow$ViewTabbedPane", "Green Analysis (Current State)", 0).SwingObject("ViewTabPane", "", 2).SwingObject("GreenCalculatorView", "", 0).SwingObject("JScrollPane", "", 0).SwingObject("m", "", 0).SwingObject("ProjectTable", "", 0)

 

Please provide feasible solution to this problem

 

Thanks

 

  • ajitkumar163's avatar
    ajitkumar163
    Occasional Contributor

    Can any one please help me to get the solution

     

    Best Regards,

    Ajit

  • Hi Ajit,

    What is the table's class name (JavaFullClassName)? Can you post a screenshot of the table in your application?