Did you revise the module file? On Sat, Aug 15, 2020 at 11:34 AM HRH <hrh...@yahoo.com.invalid> wrote:
> Hi, > > I had an FXML file that was working fine until I added an UI component > "WebView". The <?import javafx.scene.web.WebView?> in the FXML file > marked as an error because somehow the javafx.web from the JavaFx\Lib is > not seen. I have already modified the POM file to include this dependency > as follow alas the FXMLLoader.load() failes to load the FXML file and it > throws a runtime exception: > > <dependencies> > <dependency> > <groupId>org.openjfx</groupId> > <artifactId>javafx-controls</artifactId> > <version>14</version> > </dependency> > <dependency> > <groupId>org.openjfx</groupId> > <artifactId>javafx-fxml</artifactId> > <version>14</version> > </dependency> > <dependency> > <groupId>org.openjfx</groupId> > <artifactId>javafx-web</artifactId> > <version>14</version> > </dependency> > </dependencies> > > Any insight as why the <?import javafx.scene.web.WebView?> cause an error? > > Thanks in advance. > >