问题遇到的现象和发生背景
想要使用 TrayIcon
用代码块功能插入代码,请勿粘贴截图
module com.example.javafxdemo {
requires javafx.controls;
requires javafx.fxml;
requires javafx.web;
requires org.controlsfx.controls;
requires com.dlsc.formsfx;
requires validatorfx;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.bootstrapfx.core;
requires eu.hansolo.tilesfx;
requires javafx.media;
requires lombok;
requires java.datatransfer;
requires java.desktop;
opens com.example.javafxdemo to javafx.fxml;
exports com.example.javafxdemo;
}
运行结果及报错内容
java: 模块 com.example.javafxdemo 同时从 java.desktop 和 java.datatransfer 读取程序包 java.awt