The NetBeansIDE-AfterburnerFX-Plugin is a NetBeans IDE plugin which supports
the file generation in convention with the library afterburner.fx in a JavaFX
project.
The following primary files [FileName].fxml, [FileName]Presenter.java, [FileName]View.java
and optional [FileName].css, [FileName].properties and configuration.properties
can be created in a new wizard.
One conditional is that [FileName].toLowerCase() must be equals with the last choosen package name.
Press
InterviewwithAdam Bienabout me and the plugin: afterburner.fx NetBeans plugin release - an interviewAdam Bienintroduced my plugin in one of his videosDI, IoC and MVP With Java FX -- afterburner.fx Deep Dive(see at 48:00)):
The following screenshots shows the workflow to create the new 'AfterburnerFX Files'. The screenshots are taken under Windows 10.
- The plugin create a new wizard in NetBeans IDE which allowed the fast generation from the Model-View-Controller files for your JavaFX project in convention with the library afterburner.fx.
- The plugin is developed with the NetBeans IDE 8.0.2.
- The plugin is a NetBeans IDE plugin
. - The plugin is an Open Source project.
- The plugin is tested with JUnit tests.
Following files can be created in the new wizard:
- Primary files are
[FileName].fxml,[FileName]Presenter.javaand[FileName]View.javawhere [FileName].toLowerCase() must be equals with the last choosen package name.- Additional option: File
[FileName].fxmlshould be lowercase.
- Additional option: File
- Optional files are
[FileName].css,[FileName].properties andconfiguration.properties.- Additional options: File
[FileName].cssand/or file[FileName].propertiesand/orconfiguration.propertiesshould be lowercase.
- Additional options: File
- The optional files can also additional injected into following files:
- The
[FileName].cssfile can additional injected into the[FileName].fxml file. - The
[FileName].propertiescan additional injected into into the[FileName]Presenter.javafile.
- The
Comparison with/without injection from the Optional File ImportDialog.css
in ImportDialog.fxml.
Without injection:
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.my.demoapplication.importdialog.ImportdialogPresenter">
</AnchorPane>With injection:
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" styleClass="mainFxmlClass" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.my.demoapplication.importdialog.ImportdialogPresenter">
<stylesheets>
<URL value="@Importdialog.css"/>
</stylesheets>
</AnchorPane>Comparison with/without injection from the Optional File ImportDialog.properties
in ImportDialogPresenter.java`.
Without injection:
public class ImportdialogPresenter implements Initializable {
@Override
public void initialize(URL location, ResourceBundle resources) {
}
}With injection:
public class ImportdialogPresenter implements Initializable {
private ResourceBundle resources = null;
@Override
public void initialize(URL location, ResourceBundle resources) {
this.resources = resources;
}
}- The wizard gives the user
feedbackif the choosen[FileName]andpackage namearen't in convention with the library afterburner.fx. The [FileName].toLowerCase() and the last choosen package name must be equals. - Feedback is also given if the choosen
[FileName]and / orpackage namedoesn't follow the rules from the Java Naming Convention.
- On your system you need JRE 8 or JDK 8 installed.
- You should use NetBeans IDE as your development ide
. - The plugin should be installed in your NetBeans IDE
. - In your JavaFX project the library afterburner.fx should be injected
.
- If not installed download the JRE 8 or the JDK 8.
- Optional: To work better with FXML files in a JavaFX application download the JavaFX Scene Builder in the section 'Additional Resources'.
- If not installed download the NetBeans IDE.
Manual installation from the plugin in NetBeans IDE
- Download the plugin from here NetBeansIDE-AfterburnerFX-Plugin.nbm (GitHub) or from here NetBeansIDE-AfterburnerFX-Plugin.nbm (NetBeans Plugin Portal).
- Click in the toolbar from the NetBeans IDE on
Tools, thenPlugins. - In the opened dialog click on the tab 'Downloaded`.
- Click on the button
Add Plugins...and select then downloaded plugin. - Clicking
Installwill prompt the dialogVerify Certifcate.- Optional: You can view the certificate with the button
Show certificate. - Click the button
Continuefor installing the plugin.
- Optional: You can view the certificate with the button
Plugin installation through the Update Center from NetBeans IDE
- Click on
Tool->Pluginsaction in the IDE. - Click on the tab
Available Pluginsand thenCheck for Newest. - Search and checked the plugin in the list from available plugins.
- Clicking
Installwill prompt the dialogVerify Certifcate.- Optional: You can view the certificate with the button
Show certificate. - Click the button
Continuefor installing the plugin.
- Optional: You can view the certificate with the button
- If you find a
BugI will be glad if you will report an Issue. - If you want to contribute to the project plz fork the project and do a Pull Request.
- The project
NetBeansIDE-AfterburnerFX-Pluginis licensed under General Public License 3.0.
- The
smilysin this document are from famfamfam. Click famfamfam ReadMe for more information. - The action icon is the changed NetBeans IDE
class.pngicon from the moduljava.source.
- The project
NetBeansIDE-AfterburnerFX-Pluginis maintained by me, Peter Rogge. See Contact.
- You can reach me under peter.rogge@yahoo.de.






