For Each row() As Object In tvMyTable.Items
Dim p1 As Pane = row(2) 'select green/red color on cell data
Dim lbl As Label = p1.GetNode(0)
If (lbl.text = "CCA") Then lbl.TextColor=fx.Colors.Green Else lbl.TextColor=fx.Colors.Red
Dim p1 As Pane = row(8) 'format number like monetary and right align horizontally
Dim lbl As Label = p1.GetNode(0)
Dim i As Int = lbl.text
lbl.text = NumberFormat2((i/100),1,2,2,False)
Dim jo1 = lbl As JavaObject
jo1.RunMethod("setAlignment", Array As Object("CENTER_RIGHT"))
Dim p1 As Pane = row(9) 'center a checkbox
Dim chk As CheckBox
chk=p1.GetNode(0)
Dim jo1 = chk As JavaObject
jo1.RunMethod("setAlignment", Array As Object("CENTER"))
Next