### Inline Java UI HelloWorld Mac Look

B4J UI Application - Inline Java Example HelloWorld with Mac Look.
Uses AquaFX styles
Reference: http://aquafx-project.com/project.html
Taken from the Project description:
AquaFX styles your application to the Aqua theme of Mac OS X, used in "Mountain Lion".
The backgrounds, Buttons and all JavaFX Controls look like being a part of Mac OS.
Example B4J Project
Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 400
#AdditionalJar: aquafx-0.1
End Region
`Sub Process_Globals
Private Const CAPPINFO As String = "B4JHowTo - Inline Java HelloWorldUIAquaUIEx v20150204"
Private fx As JFX
Private MainForm As Form
Private joMe As JavaObject = Me
Private btnAbout As Button
End Sub`
`Sub AppStart (Form1 As Form, Args() As String)
Log(CAPPINFO)
MainForm = Form1
MainForm.Title = "B4JHowTo App with Mac Look and Feel"
MainForm.RootPane.LoadLayout("Main")
MainForm.SetFormStyle("UTILITY")
MainForm.Resizable = False
MainForm.Show
'
joMe.RunMethod("Apply", Null)
End Sub`
`Sub btnAbout_Action
joMe.RunMethod("MessageDialog", Array("B4JHowTo App with Mac Look and Feel"))
End Sub`
'
' INLINE JAVA
'
'Set the AquaFX style
If JAVA
import com.aquafx_project.AquaFx;
public static void Apply() {
AquaFx.style();
}
End If
'Display Message Dialog using swing
If JAVA
import javax.swing.JOptionPane;
public static void MessageDialog(String msg) {
JOptionPane.showMessageDialog( null, msg );
}
End If

Changed: , Category: Inline Java, File: T6C201M1483.htm, ID: 1483