...
Dim iv As ImageView
Dim im As Image
Dim b As Button
iv.Initialize("")
im.Initialize("","your image for the button.png")
iv.SetImage(im)
b.Initialize("b1")
asJO(b).RunMethod("setGraphic",Array(iv))
MainForm.RootPane.AddNode(b,10,10,-1,-1)
MainForm.Show
End Sub
Sub asJO(o As JavaObject) As JavaObject
Return o
End Sub