JavaFX API Doc not working

Answered

Hello,

actuall I implement a Java application based on Java 12 and JavaFX 12. My problem is, that I'm not able to use the API doc for JavaFX (CTR+Q). I input the path of the API documentation (https://openjfx.io/javadoc/12/) to my global JavaFX library but the environment does can load the documentation. If I interpreted right, the path to the document is wrong.

IntelliJ IDEA 2019.2.2 (Ultimate Edition)
Build #IU-192.6603.28, built on September 6, 2019
Runtime version: 11.0.3+12-b304.56 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

0
13 comments

Hello,

It seems to work fine on my machine. Please attach sample proejct example for investigation.

 

0
Avatar
Permanently deleted user
0

I opened settings.fxml, put caret on "BreadCrumbBar" in "<?import org.controlsfx.control.BreadCrumbBar?>" and pressed Ctrl+Q and documentation was fetched fine. Do you face issue at this step? Could you please share idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?

0
Avatar
Permanently deleted user

Hi

the log can be downloaded from:

http://software.fastgmbh.de/versand/idea.log

I talked from JAVAFX, not from Controlsfx. "<?import org.controlsfx.control.BreadCrumbBar?>" is part of Controlsfx this is working. Please try:

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Hyperlink?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

They are not working.

0

The problem is that there is several modules in javafx library and different URLs should be used to fetch documentation. E.g. for "javafx.geometry.Insets" it should be "https://openjfx.io/javadoc/12/javafx.graphics". Probably it's better to use build tool (e.g. Maven) that will download proper javadoc.

Also feel free to create request on YouTrack for proper URL generation: http://youtrack.jetbrains.com/issues/IDEA.

0

Javafx docs doesn't work for me too

0

It didn't work. As you can see from the screens the settings you suggested were already applied.

However I was able to solve the problem differently

I added the documentation as URLs, it's a bit slow when fetching the docs but at least it works.

0

Helo Alessandro,

Can you please share the link to the JavaFX that you use? Thank you 

0

I have downloaded JavaFX from https://gluonhq.com/products/javafx/ (v14 + docs)

Also I found another solution which is similar. You can add each single doc folder.

I was able to use the offline documentation using the settings below:

0

Hello Alessandro,

Thank you for the details, please follow the issue created at the YouTrack:

https://youtrack.jetbrains.com/issue/IDEA-247903

0
Avatar
Permanently deleted user

Alessandro's solution of adding every doc directory is the only one that worked for me (JavaFX 15.0.1 + docs). Thanks

0

Using the top level directory worked for me (JavaFX 15.0.1).

0

Please sign in to leave a comment.