[RSS]

NewAndNoteworthy in Milestone 2 of JavaFX Plugin


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.

PlatformManager.png

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

AddPlatform1.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.

AddPlatform2.png

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

ProjectProperties.png

Code folding

CodeFolding.png

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

Code completion

CodeCompletion.png

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

Variables and methods highlighting

Highlighting.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.

demos_screenshots.png

ErrorHighlighting in the editor

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

errorHighlighting.png

Profiler

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

JavaFXProfiler_invoke.png

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

JavaFXProfiler_run.png

Monitor collected data:

JavaFXProfiler_results.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:

RunApplet_template.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:

RunApplet_invoke.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):

RunApplet_results.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.

Preview.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:

gotosource.png

Navigator

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

navigator.png

Feature to add

Another description. Screenshots are highly recommended...


Back to JavaFXNewAndNoteworthy

Download Milestone 2

Attachments

AddPlatform1.png Info on AddPlatform1.png 8219 bytes
AddPlatform2.png Info on AddPlatform2.png 8711 bytes
CodeCompletion.png Info on CodeCompletion.png 44322 bytes
CodeFolding.png Info on CodeFolding.png 46045 bytes
Highlighting.png Info on Highlighting.png 49521 bytes
JavaFXProfiler_invoke.png Info on JavaFXProfiler_invoke.png 54744 bytes
JavaFXProfiler_results.png Info on JavaFXProfiler_results.png 104217 bytes
JavaFXProfiler_run.png Info on JavaFXProfiler_run.png 90615 bytes
PlatformManager.png Info on PlatformManager.png 10590 bytes
Preview.png Info on Preview.png 77218 bytes
ProjectProperties.png Info on ProjectProperties.png 10426 bytes
RunApplet_invoke.png Info on RunApplet_invoke.png 51102 bytes
RunApplet_results.png Info on RunApplet_results.png 53042 bytes
RunApplet_template.png Info on RunApplet_template.png 59109 bytes
demos_screenshots.png Info on demos_screenshots.png 90676 bytes
errorHighlighting.png Info on errorHighlighting.png 68979 bytes
gotosource.png Info on gotosource.png 20027 bytes
highlighting.PNG Info on highlighting.PNG 49521 bytes
navigator.png Info on navigator.png 82360 bytes