[英]Javafx javadocs in intellij does not work
i am trying to write some JavaFX code in Intellij community edition, and i have problem with JavaFX javadocs, see picture below:我正在尝试在 Intellij 社区版中编写一些 JavaFX 代码,但我对 JavaFX javadocs 有疑问,请参见下图:
Intellij JavaFx javadoc Intellij JavaFx javadoc
It is same with JavaFX project or Maven project.与JavaFX项目或Maven项目相同。 In Netbeans JavaFX javadocs works fine out of the box.
在 Netbeans JavaFX 中,javadocs 开箱即用。
Through the following few steps, you can easily solve this problem without downloading Javadoc通过以下几个步骤,不用下载Javadoc也可以轻松解决这个问题
First: Go to "openjfx.io" to download the Java FX applicable to your device(Just download the SDK)第一:Go到“openjfx.io”下载适用于您设备的Java FX(下载SDK即可)
Second: Find the file you just downloaded in your device (should be a zip file), unzip it, Open the decompressed file, you will find a javafx-sdk-19 folder (depending on the version you downloaded, there will be a different number at the end), I usually rename the folder to Java FX (Although I named it JFX ), Then you can move this folder to whatever file path you want it to be in, Be sure to remember the new path to the folder第二:在你的设备中找到你刚刚下载的文件(应该是zip的文件),解压,打开解压后的文件,你会发现一个javafx-sdk-19文件夹(根据你下载的版本不同,会有不同的)数字),我通常将文件夹重命名为 Java FX(虽然我将其命名为 JFX ),然后您可以将此文件夹移动到您想要的任何文件路径,一定要记住文件夹的新路径
Second: Open IntelliJ, Find Project Structure as shown in the figure below, and click it第二:打开IntelliJ,找到如下图的Project Structure,点击
Fifth: Click Global Libraries, then click "+"第五:点击Global Libraries,然后点击“+”
Sixth: Select Java, and select the "lib" folder in the folder where Java FX is located, then click "OK", continue to click "OK"第六:Select Java、select Java FX所在文件夹中的“lib”文件夹,然后点“确定”,继续点“确定”
select the lib folder select lib文件夹
Seventh: Click add and select "src.zip" under the Java FX folder, click "OK", continue to click "OK"第七:在Java FX文件夹下点击添加和select“src.zip”,点击“确定”,继续点击“确定”
select "src.zip" select "src.zip"
Eighth: Click on "Modules", then select "Dependencies", then click "+", then click "Library...", "Choose lib" under "Global Libraries", Click “Add Selected”, Click "Apply", then click "OK"第八:点击“Modules”,然后select“Dependencies”,再点击“+”,再点击“Library...”,“Global Libraries”下的“Choose lib”,点击“Add Selected”,点击“Apply”,然后点击“确定”
Complete the above steps to use the Javadoc of Java FX完成以上步骤即可使用Java FX的Javadoc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.