In my following code, I browse a table and look for columns containing blue icon if it is the case , I count number of lines having blue icon and containing word “ble”
but what I have do doesn’t’ work as I like.
for (int i = 0; i <myTable.getRowCount(); i++)
{
myTable.selectCell(i, 1);
if (myTable.getIcon(i, 0) == ("blue.gif"))
{
if (myTable.getRowValue(i, 0).contains("ble."))
{
int counter = 0;
counter = counter + 1;
System.out.println(counter);
}
}
}
The
countervariable must be declared above thefor: