Loading Content

Loading URL
To load a web page by its URL use the Browser.loadURL() method. The following code demonstrates how to load http://www.google.com web page:  browser.load...
Wed, 4 May, 2016 at 11:04 AM
Loading URL with POST
To load web page by its URL and send some POST data, use the Browser.loadURL(LoadURLParams params) method. The following code demonstrates how to load URL a...
Sun, 10 Jan, 2016 at 4:05 PM
Loading HTML
To load HTML content from a string use Browser.loadHTML() method. For example:  browser.loadHTML("<html><body><h1>Load HTML Sample...
Wed, 4 May, 2016 at 11:01 AM
Loading HTML from JAR
JxBrowser allows loading HTML by URL, from local HTML file, from a String. Very often Java application resources such as HTML files are located inside JAR a...
Fri, 10 Mar, 2017 at 11:09 AM
Getting HTML
To get a string that represents HTML of loaded web page use Browser.getHTML() method. You must call this method only when web page is loaded completely. Oth...
Sun, 10 Jan, 2016 at 4:06 PM
Getting Selected HTML
To get selected HTML on the loaded web page use the Browser.getSelectedHTML() method as described in the example below:   import com.teamdev.jxbrowser...
Wed, 8 Jun, 2016 at 5:19 PM
Loading Events
     browser.addLoadListener(new LoadAdapter() { @Override public void onStartLoadingFrame(StartLoadingEvent event) { if (event.isMa...
Wed, 19 Oct, 2016 at 3:12 PM
Loading & Waiting
In some cases (e.g. automation testing) you might need to block current thread execution and wait until web page is loaded completely. JxBrowser API provide...
Thu, 12 Oct, 2017 at 6:36 PM
Displaying PDF
JxBrowser allows displaying PDF document using Chromium PDF Viewer plugin. You can display PDF file available on a remote web server (using URL of the PDF f...
Thu, 21 Apr, 2016 at 11:24 AM
Network Events
JxBrowser provides functionality that allows handling network activity including HTTP requests/responses. You can use the NetworkDelegate to handle all netw...
Sun, 10 Jan, 2016 at 4:07 PM
Handling Resources Loading
Using ResourceHandler you can determine whether resources such as HTML, Images, JavaScript & CSS files, favicon, etc. should be loaded or not. By def...
Thu, 13 Jul, 2017 at 4:05 PM
Enabling/Disabling Backspace Navigation
By default navigation on Backspace and Shift+Backspace is enabled. In order to disable navigation when user presses Backspace or Shift+Backspace use the fol...
Wed, 6 Jan, 2016 at 3:53 PM
Handling SSL Certificate Errors
By default JxBrowser allows loading HTTPS web sites with invalid SSL certificates. If you need to change this default behavior and don't allow invalid ...
Fri, 16 Dec, 2016 at 4:09 PM
SSL Certificate Verifier
In JxBrowser 6.3 the CertificateVerifier API has been introduced. Using this API you can get information about each SSL certificate used for displaying HTTP...
Mon, 4 Apr, 2016 at 6:27 PM
Navigation History
JxBrowser provides API for working with navigation history. Using this API you can get information about navigation entries, got to entry at specified index...
Mon, 14 Mar, 2016 at 11:15 AM
User-Agent
The user-agent string can be modified only once, before you create any Browser instances. You can provide your own user-agent string using the BrowserPrefer...
Sun, 10 Jan, 2016 at 4:09 PM
WebSockets
JxBrowser supports web pages that use WebSockets technology. For example:  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.c...
Thu, 21 Jan, 2016 at 2:09 PM
Handling Loading
JxBrowser API provides functionality that you can use to handle loading and decide whether specified URL should be loaded in Chromium engine or not....
Wed, 21 Sep, 2016 at 4:12 PM
Modifying POST/PUT/PATCH Upload Data
JxBrowser API provides functionality that allows accessing and modifying POST/PUT/PATCH upload data before it will be sent to a web server. POST/PUT/PATCH u...
Fri, 5 Feb, 2016 at 4:34 PM
HTML5 Local & Session storages
HTML5 supports Web Storage API that allows browsers to store key/value pairs, in a much more better way than using cookies. Web Storage API provides two mec...
Thu, 12 Jan, 2017 at 6:22 PM
Accessing HTTP response data
JxBrowser API provides functionality that allows accessing HTTP response data such as HTML, plain text, JavaScript code, CSS, images, etc. Using this func...
Wed, 8 Jun, 2016 at 5:15 PM
HTTP Server Whitelist
HTTP Server Authorization Whitelist Since 6.8 you can configure JxBrowser with HTTP server authorization whitelist that represents a string with comma/s...
Wed, 2 Nov, 2016 at 3:41 PM
Custom Protocol Handler
JxBrowser 6.11 and higher provides the API that allows you to handle URL requests for standard (e.g. HTTP, HTTPS, FTP, etc.) and non-standard (e.g. JAR, MYP...
Thu, 22 Jun, 2017 at 7:15 PM
ActiveX
JxBrowser is based on Chromium engine that doesn't support ActiveX controls. If you need to display web pages with ActiveX control in your Java Swing a...
Wed, 8 Nov, 2017 at 12:13 PM