Questions tagged [javafx-webengine]

WebEngine is a non-visual object capable of managing one Web page at a time. It loads Web pages, creates their document models, applies styles as necessary, and runs JavaScript on pages. It provides access to the document model of the current page, and enables two-way communication between a Java application and JavaScript code of the page.

264 questions
2
votes
0 answers

Ajax call fails with Javafx Webview

Followed this, though Ajax calls from link executes without any errors, having below function in a HTML fails still $(document).ready(function() { alert("Ready"); $.ajax({ url: "https://www.google.com/", type:…
Samy
  • 2,387
  • 2
  • 17
  • 31
2
votes
2 answers

JavaFX WebView is not working with spring boot maven

I have created the Spring boot JavaFX application with scene builder. When I add the WebView component in my FXML file I am getting the below error: Caused by: javafx.fxml.LoadException:…
2
votes
1 answer

Discord OAuth2 redirect url fails to display with JavaFX WebView JDK12

I am trying to get the following site: link to discord OAuth2 URL (hover me to see link) to load with JavaFX WebView in JDK12. When I try loading that site, all that is shown is a white page. The following code is what is used to display, and handle…
Corbin
  • 77
  • 7
2
votes
1 answer

MathML tags don't render properly in JavaFX WebView

MathML tags don't render properly in JavaFX WebView JDK Version : 1.8.0_192 For example, S n <
Rinish Sam
  • 145
  • 2
  • 8
2
votes
0 answers

JavaFx WebView Javascript changes eat up CPU

I have a project that is running AngularJs website inside an JFX webView. Whenever some javascript is running in a loop the CPU goes up to 100%. To be more specific I have a $scope.moveFloatingBanner = function () { try { var dx =…
2
votes
1 answer

Javafx calling javascript to excute java function in webview not working

According to the JavaFX docs, you can execute Java code with JavaScript function. Below is my code: engine = webview.getEngine(); engine.load("http://localhost:8080/testing.php"); openExcel callback = new openExcel(); JSObject window = (JSObject)…
2
votes
0 answers

Add new entries to JavaFX WebEngine history programmatically

This might seem strange but i have a specific reason. Example Mozilla Firefox allows you when you click the middle mouse button on the next or previous arrow from the top url bar , to open a new tab -> which also remembers the history of the…
GOXR3PLUS
  • 6,877
  • 9
  • 44
  • 93
2
votes
0 answers

How do I get the results of deferred JavaScript execution when using JavaFX WebEngine.executeScript?

When executing a JavaScript in a WebEngine, how do I get the DOM using WebEngine.getDocument after the results of any deferred script execution? Here is the minimal code to demonstrate the question. The following HTML when rendered in a standard…
Danger
  • 2,043
  • 2
  • 21
  • 24
2
votes
0 answers

JavaFX WebEngine get HTTP response codes

I am trying to use the JavaFX WebEngine to access a website. To work properly, my application needs to know the http response code returned by the website and preferably also the response message. Is there a way to access this data over the…
Joba
  • 777
  • 7
  • 24
2
votes
0 answers

How load website in WebView JavaFX, if that asked *.pfx certificate?

I'm using javafx.scene.web.WebView. Other websites loads fine, but one give me clear white WebView. When I'm load it in Google Chrome, I see the window, that asking my installed certificate, I confirm, ant website loads. Certificate is in *.pfx…
Nick Konorev
  • 71
  • 1
  • 5
2
votes
1 answer

Executing multiple scripts with WebEngine (or a script that depends on another script)

I want to use the WebEngine (of JavaFX) to execute some JavaScript (and jQuery) on web pages and process the results (with Java code). I have a problem with callback functions that execute some script by themselves. For the purpose of illustrating…
LionGod8
  • 368
  • 2
  • 9
2
votes
0 answers

ContextMenu on Webview is not displaying correctly in JavaFX

I have a webview where I have given context menu options based on the type of HTML elements. Few elements have 3 menu items and few other elements have 6 menu items. Above two images are some examples. On right clicking a text field, I'm getting 6…
NaveenBharadwaj
  • 1,212
  • 5
  • 19
  • 42
2
votes
1 answer

Leaflet Map in JavaFX WebEngine

I'm having some Problems with Leaflet in the JavaFX Webengine. I want to visualize GPS tracks with the geoJson format. The code listing below shows the HTML and JavaScript code I have developed so far. A Leaflet…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/javafx" class="post-tag grid--cell" title="show questions tagged 'javafx'" rel="tag">javafx</a> <a href="../../questions/tagged/onclick" class="post-tag grid--cell" title="show questions tagged 'onclick'" rel="tag">onclick</a> <a href="../../questions/tagged/leaflet" class="post-tag grid--cell" title="show questions tagged 'leaflet'" rel="tag">leaflet</a> <a href="../../questions/tagged/javafx-webengine" class="post-tag grid--cell" title="show questions tagged 'javafx-webengine'" rel="tag">javafx-webengine</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 09 '15 at 16:20">asked Jul 09 '15 at 16:20</time> <a href="../../users/5099349/trynx91" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5099349.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Trynx91" /> </a> <div class="s-user-card--info"> <a href="../../users/5099349/trynx91" class="s-user-card--link">Trynx91</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">33</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30835516"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30835516/how-to-debug-problems-with-the-javafx-native-bundle-for-windows" class="question-hyperlink">How to debug problems with the javafx native bundle for Windows?</a></h3> <div class="excerpt">I'm trying to package a JavaFX/DukeScript application into native bundles. For Windows that's achieved with Inno Setup, that's what the javafxpackager uses. I can't find much documentation about it, so I'll create a question and provide the answers…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javafx" class="post-tag grid--cell" title="show questions tagged 'javafx'" rel="tag">javafx</a> <a href="../../questions/tagged/javafx-webengine" class="post-tag grid--cell" title="show questions tagged 'javafx-webengine'" rel="tag">javafx-webengine</a> <a href="../../questions/tagged/dukescript" class="post-tag grid--cell" title="show questions tagged 'dukescript'" rel="tag">dukescript</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 14 '15 at 23:11">asked Jun 14 '15 at 23:11</time> <a href="../../users/809536/zigliouk" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/809536.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="ZiglioUK" /> </a> <div class="s-user-card--info"> <a href="../../users/809536/zigliouk" class="s-user-card--link">ZiglioUK</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,573</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="27 silver badges">27</li> <li class="s-award-bling s-award-bling__bronze" title="32 bronze badges">32</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30526806"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30526806/hindi-font-is-not-proper-rendering-on-webview-browser-using-javafx" class="question-hyperlink">Hindi font is not proper rendering on webview browser using javafx</a></h3> <div class="excerpt">I am using webview component in javafx 2.0. Problem is that, web view is not rendering properly hindi font in the webview.Same code is rendering properly in some system, but not rendering on others. so plz give me any suggession. Or is there any…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/webview" class="post-tag grid--cell" title="show questions tagged 'webview'" rel="tag">webview</a> <a href="../../questions/tagged/javafx" class="post-tag grid--cell" title="show questions tagged 'javafx'" rel="tag">javafx</a> <a href="../../questions/tagged/javafx-2" class="post-tag grid--cell" title="show questions tagged 'javafx-2'" rel="tag">javafx-2</a> <a href="../../questions/tagged/javafx-webengine" class="post-tag grid--cell" title="show questions tagged 'javafx-webengine'" rel="tag">javafx-webengine</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 29 '15 at 10:07">asked May 29 '15 at 10:07</time> <a href="../../users/4477837/abhishek-kumar" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4477837.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Abhishek Kumar" /> </a> <div class="s-user-card--info"> <a href="../../users/4477837/abhishek-kumar" class="s-user-card--link">Abhishek Kumar</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">29</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=3" rel="prev" title="Go to page 3">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=17" rel="" title="Go to page 17">17</a> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=18" rel="" title="Go to page 18">18</a> <a class="s-pagination--item" href="../../questions/tagged/javafx-webengine_page=5" rel="next" title="Go to page 5"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>