I am working on Swing application mixed with JavaFX control.
I have created a JavaFX control (WebView
) to browse HTML files. But I want
to know, how can I add this web view control on the container of a Swing JFrame
?
I am working on Swing application mixed with JavaFX control.
I have created a JavaFX control (WebView
) to browse HTML files. But I want
to know, how can I add this web view control on the container of a Swing JFrame
?
Given an already existing
jFrame
, the following code adds a newWebView
and loads a URL:JFXPanel allows you to embed JavaFX within your Swing application.