I am trying to use javafx to render HTML 5 using a maven project on netbeans. The HTML is coming from eml files. I was able to render some eml files using a JTextPane but for HTML 5 the rendering is blank.

I manually edit the pom file to look like this, because the dependencies are not automatically available.

<dependencies> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.7</version> </dependency> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>21</version> </dependency> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-fxml</artifactId> <version>21</version> </dependency> </dependencies>

However netbeans does not recognize any of the javax imports.

import javafx.application.Application;

"package javafx.application does not exist"

Any suggestions?

TheWizEd's user avatar

9

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.