### Inline Java NonUI MessageDialog

B4J NonUI Application - Inline Java Example NonUI MessageDialog showing HelloWorld.
Example B4J Project
'Non-UI application (console / server application)
Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
End Region
`Sub Process_Globals
Private nativeMe As JavaObject
End Sub`
`Sub AppStart (Args() As String)
nativeMe = Me
nativeMe.RunMethod("HelloDialog", Null)
End Sub`
'Show a swing message dialog in a B4J nonui app
If JAVA
import javax.swing.JOptionPane;
public static void HelloDialog() {
JOptionPane.showMessageDialog( null, "Hello World!" );
}
End If

Changed: , Category: Inline Java, File: T6C201M1479.htm, ID: 1479