B4J Question AquaFX?

LWGShane

Well-Known Member
Licensed User
Longtime 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

B4X founder
Staff member
Licensed User
Longtime 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:
Upvote 0

LWGShane

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

These IDEs are truly amazing.
 
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime 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
 
Upvote 0

LWGShane

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

really.png
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime 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:
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0
Top