B4J Question AquaFX?

ShaneG30

Well-Known Member
Licensed User
Is it possible to use AquaFx with B4J? Would put the "finishing touches" on my app and make it look MAS (Mac App Store) friendly.
 

Erel

Administrator
Staff member
Licensed User
Download the jar file and copy it to the additional libraries folder: http://aquafx-project.com/index.html
1. Add this attribute:
B4X:
#AdditionalJar: aquafx-0.1
2. Add this code:
B4X:
#If JAVA
   import com.aquafx_project.AquaFx;
   public static void Apply() {
     AquaFx.style();
   }
#End If
3. Call this Java method with:
B4X:
  Dim jo As JavaObject = Me
   jo.RunMethod("Apply", Null)
 
Last edited:

ShaneG30

Well-Known Member
Licensed User
B4J just became epic powerful! Thank you!
AquaFx will help any of my Mac users "feel at home".

These IDEs are truly amazing.
 

rwblinn

Well-Known Member
Licensed User
Hi,

pls try after you have added the additional jar to the project attributes. Like:
B4X:
#Region  Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 400
    #AdditionalJar: aquafx-0.1
#End Region
 
Last edited:

ShaneG30

Well-Known Member
Licensed User
OMG, This is awesome! Got jar themes working! Though the pre-Yosemite look is a bit dated, at least it's a Mac "L&F" instead of the default style.

Did this with the OS detection and AquaFx is only used if the OS contains "mac". Going to use "Flatter" for Windows and Linux.
 
Top