### Set Form Background Image

To set the background image to a form, use an image located in the files folder (File.DirAssets).
Ensure to add the image file to the files list (B4J IDE Files Manager).
Example using Style Attribute
`Sub Process_Globals
Private fx As JFX
Private MainForm As Form
...
End Sub`
`Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.Style = "-fx-background-image:url('" & File.GetUri(File.DirAssets, "myimage.png") & "');"
MainForm.Show
End Sub`
Example using CSSUtils Library
CSSUtils.SetBackgroundImage(MainForm.RootPane, File.DirAssets, "myimage.png")

Changed: , Category: Forms, File: T6C195M1427.htm, ID: 1427