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.
 

ShaneG30

Well-Known Member
Licensed User
@Erel

Update: I'm receiving a "Package doesn't exist" error. I have the jar file in my libs folder.

Screenshot 2015-02-11 15.43.34.png
 

ShaneG30

Well-Known Member
Licensed User
Tried again, and also tried renaming the jar file itself.

really.png
 

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
My mistake, forgot to post the AdditionalJar step.
That's alright :)

I'm a newbie to your IDEs and am still getting used to their mannerisms.
 

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