Dim SheetObj As JavaObject =sheet1
SheetObj.RunMethod("createFreezePane",Array(0,2))
Dim CelReng As JavaObject
'Working in debug and release don't work B4JPackager
'CelReng = CelReng.InitializeStatic("org.apache.poi.ss.util.CellRangeAddress").RunMethod("valueOf", Array("2:2"))
'Working in debug and release and B4JPackager
CelReng.InitializeNewInstance("org.apache.poi.ss.util.CellRangeAddress",Array(1,1, 0, ResColumns.Size))
'Working in debug and relase don't work B4JPackager
SheetObj.RunMethod("setAutoFilter",Array(CelReng))