Try with the below code:
Code:
intSchCount = JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").GetROProperty("rows")
Scheme = DataTable("Scheme",dtLocalSheet)
For i = 0 to intSchCount-1
Sch=JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").GetCellData(i,"A")
If (Sch=Scheme) then
JavaWindow("EclipseEJ").JavaDialog("Online Credit Agreement").JavaTable("Select products:").[b]ChildItem(i,"C","JavaButton",0).Click[/b]Exit for
end if
Next