afterburner.fx | The Opinionated Un-Framework For Java FX Applications

 by   AdamBien Java Version: v1.7.0 License: No License

kandi X-RAY | afterburner.fx Summary

kandi X-RAY | afterburner.fx Summary

afterburner.fx is a Java library typically used in User Interface, JavaFX, Framework applications. afterburner.fx has no vulnerabilities, it has build file available and it has low support. However afterburner.fx has 1 bugs. You can download it from GitHub, Maven.

The opinionated just-enough MVP framework (2.5 classes) for JavaFX. Afterburner is a "Just-Enough-Framework" extracted from [airhacks-control] and used in [airpad] [lightfish] and [floyd] applications. Goal: "Less Code, Increased Productivity".

            kandi-support Support

              afterburner.fx has a low active ecosystem.
              It has 278 star(s) with 80 fork(s). There are 39 watchers for this library.
              It had no major release in the last 12 months.
              There are 14 open issues and 41 have been closed. On average issues are closed in 109 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of afterburner.fx is v1.7.0

            kandi-Quality Quality

              afterburner.fx has 1 bugs (0 blocker, 0 critical, 0 major, 1 minor) and 91 code smells.

            kandi-Security Security

              afterburner.fx has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              afterburner.fx code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              afterburner.fx does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              afterburner.fx releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 1403 lines of code, 145 functions and 40 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed afterburner.fx and discovered the below as its top functions. This is intended to give you an instant insight into afterburner.fx implemented functionality, and help decide if they suit your requirements.
            • Destroys all available services
            • Recursively invoke method with given annotation class
            • Gets default instance supplier
            • Destroy method annotation
            • Get the fxml file name
            • Returns the name of the view
            • Gets the name of a resource
            • Strips the end of a class
            • Returns the first child node without root container
            • Loads a FXML component synchronously
            • Discover presenter factories
            • Adds the CSS if available
            • Initialize the presenter
            • Get a resource bundle by name
            • Returns the bundle name
            • Get the presenter
            • Set configuration source
            • Set custom configurator
            • Registers presenter
            • Creates the view asynchronously
            • Set a model for the given class
            • Gets the executor service
            Get all kandi verified functions for this library.

            afterburner.fx Key Features

            No Key Features are available at this moment for afterburner.fx.

            afterburner.fx Examples and Code Snippets

            No Code Snippets are available at this moment for afterburner.fx.

            Community Discussions


            Create working .jar out of Maven-Project - JavaFX (Afterburner.fx) Project : Currently stuck with Errormessage
            Asked 2018-Dec-20 at 17:57

            I´ve created a small JavaFx Project with the use of the afterburner.fx framework. It works fine when I start it in the IDE (IntelliJ), but after I created a fat .jar out of it via the "maven-assembly-plugin" it fails to open the Second View.




            Answered 2018-Dec-20 at 17:57

            I found the Answer

            Solution for me was just to rename the .fxml Files to start Uppercase: As an example I renamed view1.fxml to View1.fxml. I guess it has something to do with the way windows is accesing the files inside an jar/zip.



            NullPointer with afterburner.fx when trying to create View
            Asked 2018-Sep-26 at 00:05

            Afterburner.fx has broken for me and I can't seem to get it working again.

            In my main method I have this:



            Answered 2018-Sep-26 at 00:05

            Since you're using Java 11 and module system, your resource output directory have to be in the same output directory as the module they belong to.

            Judging by the images in your post, you're using gradle and you build your project directly from IDEA.

            You need to tell IDE to copy your resources to the same output directory:



            Afterburner.fx injection into non-presenter classes possible?
            Asked 2018-Jun-28 at 17:04

            As the title goes, is it possible to inject objects into non-presenter/controller classes with afterburner.fx? Been trying to get it working but frankly making no progress.



            Answered 2018-Jun-28 at 17:04

            As you know, using the Afterburner framework injection works in presenter classes:



            How to ensure each Controller can see the model and is only initialized once?
            Asked 2018-Jun-03 at 22:21

            In my mainController I'm using the following method to change views:



            Answered 2018-Jun-03 at 22:21

            You can create a new fxml nodes only once per type:



            Why does adding a View after initialization throws NLP but not during initialization, using afterburner.fx
            Asked 2017-Sep-11 at 21:53

            I am using afterburner.fx

            It works as advertised. I can add multiple fxml Files to a central/main "view".

            But if I want to add another fxml/presenter later, for example, using a button on a different navigationPane to add another fxml to the mainAnchorPane. Then it throws a NullPointerException.



            Answered 2017-Sep-11 at 21:53

            Afterburner.fx is a dependency-injection framework for JavaFX. The main functionality it provides is the ability to inject objects into the controllers/presenters that are created when you load an FXML file (by instantiating a subclass of FXMLView). The basic process that happens when you instantiate a FXMLView is:

            1. A new instance of the corresponding presenter is created
            2. The presenter is inspected to find any @Inject-annotated fields
            3. For each @Inject-annotated field, if an instance of that type exists in the injector's cache, it is set as the value of that field. Otherwise, a new instance of that type is created and placed in the cache, and set as the value of the field.

            The main point to note here is that the presenters themselves are treated differently to their dependencies. If you try (as in your code) to inject one presenter in another, an instance of the presenter class will be created specifically for injection purposes: this will not be the same instance that is created when the FXML file is loaded, and consequently it won't have any @FXML-fields injected. This is why you get a null pointer exception: mainAnchorPane is null in the ``MainScenePresenterthat is injected into theNavigationPresenter`.

            One presenter having a reference to another is generally a bad idea anyway: it creates unnecessary coupling between the two presenters. Instead, you should inject a model into both presenters that represents the state you want to share between them. In your case you might have something like



            Transfer a value from ViewModel to another ViewModel (JavaFX, mvvm, afterburner.fx)
            Asked 2017-May-05 at 18:18

            I want to create an app with JavaFX and I have a problem with separated views (splited by afterburner.fx) and the mvvm principal. In my scenario i have one view with a textfield and a button and a second view with a listview. Now I write some text in the textfield to add the text to the list by clicking the button. I have four classes (view and viewmodel for textfield/button and list). Now the question: How can I react to the buttonclick and transfer the text from the textfield to the list?

            I can bind the text in the view and a property in the viewModel. But how can I transfer the value to the viewmodel of the list?

            I hope somebody can help me with this understanding problem.

            Big Thanks!



            Answered 2017-May-05 at 18:18

            The basic idea here is to use a single data model, which is shared among the components that need to access shared data. Using @Inject in afterburner.fx will provide a convenient way to manage this for you.

            For design patterns, the first thing to note is that afterburner.fx (and to a lesser extent, perhaps, the FXML-"controller" mechanism in general) is really based on a MVP pattern (not a MVVM pattern). The FXML file represents the (passive) view; the presenter is of course the presenter, and the model is implemented according to the application requirements.

            Typically, the framework you are using is a big part of the decision about which pattern(s) to use, so I think my main recommendation would be to use a MVP pattern here. Using MVP, this looks like the following:

            You can create an ObservableList in your model:



            How can I pass data from one view to another in gluon mobile? how to switch to view and set Value?
            Asked 2017-Jan-07 at 12:22

            I have a View1 with a Textfield1 and a Button. When i click a Button, i want to go to View 2 and set that Value to Textfield2 in View2. When i make it it go open a new Scene.

            This is the Code to pass the Value:



            Answered 2017-Jan-07 at 11:43

            I suggest you use the Gluon templates Project MultiView with FXML and Afterburner, or the Glisten-Afterburner one. Either of them will allow you using injection and getting a valid instance of the presenters.

            Solution 1. Glisten-Afterburner

            Using the Glisten-Afterburner default template, I've added two TextField controls, one to each of the views.

            The only thing you need is exposing a method to set the value on the second presenter:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install afterburner.fx

            You can download it from GitHub, Maven.
            You can use afterburner.fx like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the afterburner.fx component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer For Gradle installation, please refer .


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone AdamBien/afterburner.fx

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Java Libraries


            by CyC2018


            by Snailclimb


            by MisterBooo


            by spring-projects

            Try Top Libraries by AdamBien


            by AdamBienJava


            by AdamBienJava


            by AdamBienJava


            by AdamBienJava