### MessageDialog JOptionPane

B4J HowTo Project - Non-UI Application with a jSwing UI
Show HelloWorld with Swing JOptionPane showMessageDialog
Run from the Commandline: java -jar helloworld.jar
`Sub Process_Globals
Private joInlineJava As JavaObject = Me
End Sub`
`Sub AppStart (Args() As String)
Log("App Started: " & DateTime.Date(DateTime.Now) & " " & DateTime.Time(DateTime.Now))
joInlineJava.RunMethod("HelloWorldDialog", Array("Hello World!"))
'Stop the application
ExitApplication2(0)
End Sub`
'Show a swing message dialog in a B4J nonui app
If JAVA
import javax.swing.JOptionPane;
public static void HelloWorldDialog(String msg) {
JOptionPane.showMessageDialog( null, msg );
}
End If

Changed: , Category: B4J UI Applications on ARM Boards, File: T6C163M1208.htm, ID: 1208