What is the purpose of the javafx plugin? And if I download the sdk instead . . .

已回答

Hi

In general, I understand the purpose of plugins - which is to extend functionality.  But I am having trouble understanding the purpose of the JavaFX plugin.  I can download and unzip the JavaFX sdk, and then store the contents of that zip into a folder which I then use as a library.  But I do not seem to need to use a plugin for this and thus I am wondering why JavaFX has a plugin.

Having asked this question, I am also curious as to the exact steps I should use if I go the route of downloading the sdk.  After a great deal of documentation, I got it to work by:

- downloading the sdk

- unzipping

- storing the contents (the legal and lib folders and the src.zip file) in the folder /opt//opt/javafx-sdk-17.0.8

- adding a global library (using file/project structure) named lib that points to /opt/javafx-sdk-17.0.8/lib

- adding lib as a dependency to project structure modules

- setting modify options to add vm options

- creating a run/debug configuration with a vm option of --module-path /opt/javafx-sdk-17.0.8/lib --add-modules javafx.controls

Phil

 
0

This is IDE plug-in to provide support for JavaFX development, you can find what it does in the description.

 

Enables JavaFX support. The following features are available:
Dedicated file type.
Ability to create a project with the special file and directory structure.
JavaFX-aware coding assistance (code completion, search, navigation and refactoring in JavaFX-specific source files).
Integration with JavaFX Scene Builder.
Support for CSS stylesheets used with JavaFX.

 

1

Hi Serge

Thanks for responding.    I was able to do a lot of these things just by creating a Java project (and then separately a kotlin project), setting a couple of items in the project structure screen, and then setting the run configurations.  

I am suspecting the Scene builder (which I didn't know about before) is one of the big benefits, and possibly the support for css stylesheets (which I will look into).

Can you briefly explain what you mean by dedicated fiole type, and what the special file and directory structure is?  I was able to build a HelloWorld example pretty much just using a simple Java (and then kotlin separately) project without any special structure.

Thanks . . .

 

Phil

0

FXML file type support is provided by this plug-in.

Project wizard creates a project with the correct layout and all the needed files.

These features will not be available without the plug-in.

0

请先登录再写评论。