cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

JavaFXM2NewAndNoteworthy

NewAndNoteworthy in Milestone 2 of JavaFX Plugin

Contents



JavaFX Platform

A new JavaFX platform has been introduced in NetBeans JavaFX plugin. You can always find the default instance of JavaFX platform in Java Platform Manager. The default JavaFX platform is based on the default Java SE platform and bundled JavaFX libraries. The default JavaFX platform is used for every new JavaFX project so there is no extra setup required before the first usage.

Image:PlatformManager_JavaFXM2NewAndNoteworthy.png

Add Platform Wizard has been extended to allow installation of additional JavaFX platforms.

Image:AddPlatform1_JavaFXM2NewAndNoteworthy.png

For every new JavaFX platform there is necessary to specify: platform name, Java platform it is based on and folder with JavaFX libraries (javafxrt.jar, javafxc.jar, Scenario.jar, etc...). JavaFX platform can be based on Java Development Kit (JDK) or just on Java Runtime Environment (JRE) so there is an extra option to specify custom location of Java platform when necessary.

Image:AddPlatform2_JavaFXM2NewAndNoteworthy.png

Each JavaFX project can now select from the installed JavaFX platforms. Selected platform is used for compilation, debugging and execution of the project.

Image:ProjectProperties_JavaFXM2NewAndNoteworthy.png

Code folding

Image:CodeFolding_JavaFXM2NewAndNoteworthy.png

Code folding adds the handles to the left side of the editor allowing to collapse parts of the code

Code completion

Image:CodeCompletion_JavaFXM2NewAndNoteworthy.png

Code completion allows to hit CTRL-SPACE and get context sensitive help when typing in the editor.

Variables and methods highlighting

Image:Highlighting_JavaFXM2NewAndNoteworthy.png

Variable declarations and methods highlighting.

Best Practices Demos

Over 25 demos showing simple JavaFX practices on few lines of code. Each demo could be created as new project so user quickly deep into the language. More details are here JavaFXBestPractices.

Image:demos_screenshots_JavaFXM2NewAndNoteworthy.png

ErrorHighlighting in the editor

The errors are now red underlined and marked on the right side of the editor (even without compilation).

Image:errorHighlighting_JavaFXM2NewAndNoteworthy.png

Profiler

Profiler facility added to allow user profile JavaFX Script application. Right-click the project node to start project profiling:

Image:JavaFXProfiler_invoke_JavaFXM2NewAndNoteworthy.png

Select desired Profiler options on the appeared Profiler control dialog window and press Run:

Image:JavaFXProfiler_run_JavaFXM2NewAndNoteworthy.png

Monitor collected data:

Image:JavaFXProfiler_results_JavaFXM2NewAndNoteworthy.png

Note that single file profiling is not supported so far. Note also that currently Profiler is not JavaFX Script specific and works in Java terms only.

Run as Applet

JavaFX Script Applets are now supported.

To create JavaFX Script Applet, please right-click project or package node and select "New"-"JavaFX Applet" menu item:

Image:RunApplet_template_JavaFXM2NewAndNoteworthy.png

Write some applet code using the appeared applet's template. To run the applet, right-click the file and select "Run Applet" menu item:

Image:RunApplet_invoke_JavaFXM2NewAndNoteworthy.png

The result of file execution will be shown in the standard J2SE AppletViewer window (the plugin generates required html launcher and policy file automatically):

Image:RunApplet_results_JavaFXM2NewAndNoteworthy.png

Preview

The Preview allows developer to see the changes made by modifying of the source code without having to continually rebuild and execute the JavaFX application.

Image:Preview_JavaFXM2NewAndNoteworthy.png


Go to source/declaration

The editor displays resolved type and kind of an identifier in a tooltip and can navigate (inside single source file) to variable declaration or its' type declaration using standard Ctrl(+Shift)+B:

Image:gotosource_JavaFXM2NewAndNoteworthy.png


Navigator

Navigator has been implemented. Several filters, both way goto support, etc.

Image:navigator_JavaFXM2NewAndNoteworthy.png

Feature to add

Another description. Screenshots are highly recommended...


Back to JavaFXNewAndNoteworthy

Download Milestone 2