jdk17在idea中配置javafx
时间: 2023-10-25 21:09:06 浏览: 277
要在IntelliJ IDEA中配置JavaFX,你需要按照以下步骤进行操作:
1. 首先,在您的项目中添加JavaFX所需的两个依赖项:javafx.base和javafx.swing。您可以通过将以下代码添加到您的项目的pom.xml文件中来实现:
```
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>17.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>17.0.2</version>
</dependency>
```
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [IDEA2022.2如何安装JavaFX(JDK版本17)](https://blog.csdn.net/weixin_66419853/article/details/128880976)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [(idea版本)下载javaFX和配置环境详细大全](https://blog.csdn.net/m0_52861000/article/details/127460129)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文