Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Destroy/Dispose WebView

ascuccimarraSep 14 2012 — edited Sep 27 2012
Hello,
Is there a way to destroy a WebView instance? If a page loads, and say a video starts playing, I want to be able, when I hide the WebView, basically to destroy it, or at least to reset it.
I know I could listen to the visibleProperty and do a getEngine().load()
But I was wondering if there was something better. Also, the visibleProperty only changes if the actual webView.setVisible(false) is executed right? It does not track, for example, that the parent node of the webview has been made not visible.
Appreciate your help.
This post has been answered by jmart on Sep 14 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2012
Added on Sep 14 2012
3 comments
745 views