B4J Question AquaFX?

Discussion in 'B4J Questions' started by ShaneG30, Feb 11, 2015.

  1. ShaneG30

    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.
     
  2. Erel

    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:
    Code:
    #AdditionalJar: aquafx-0.1
    2. Add this code:
    Code:
    #If JAVA
       import com.aquafx_project.AquaFx;
       public static void Apply() {
         AquaFx.style();
       }
    #End If
    3. Call this Java method with:
    Code:
    Dim jo As JavaObject = Me
       jo.RunMethod(
    "Apply"Null)
     
    Last edited: Feb 12, 2015
    ShaneG30, rwblinn and lemonisdead like this.
  3. ShaneG30

    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.
     
  4. ShaneG30

    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
     
  5. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    Tried again, and also tried renaming the jar file itself.

    really.png
     
  6. rwblinn

    rwblinn Well-Known Member Licensed User

    Hi,

    pls try after you have added the additional jar to the project attributes. Like:
    Code:
    #Region  Project Attributes
        
    #MainFormWidth: 600
        
    #MainFormHeight: 400
        
    #AdditionalJar: aquafx-0.1
    #End Region
     
    Last edited: Feb 13, 2015
    ShaneG30, inakigarm and Erel like this.
  7. Erel

    Erel Administrator Staff Member Licensed User

    My mistake, forgot to post the AdditionalJar step.
     
    ShaneG30 likes this.
  8. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    That's alright :)

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

    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.
     
  10. rboeck

    rboeck Well-Known Member Licensed User

    Can we get pictures of the different styles?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice