Browser View

Lightweight or Heavyweight
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. JxBrowser supports two rendering modes:...
Fri, 23 Aug, 2019 at 5:26 PM
Using JxBrowser in Swing
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. JxBrowser supports Java Swing. To embed...
Tue, 27 Aug, 2019 at 7:56 PM
Using JxBrowser in JavaFX
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. JxBrowser supports JavaFX toolkit and c...
Tue, 27 Aug, 2019 at 7:57 PM
Using JxBrowser in SWT
JxBrowser supports Swing/AWT and JavaFX UI toolkits. It provides two implementations of the BrowserView class that can be used for embedding JxBrowser into ...
Wed, 5 Sep, 2018 at 5:53 PM
Custom CSS Cursors
JxBrowser supports custom web cursors. The following sample demonstrates how it works:  import com.teamdev.jxbrowser.chromium.Browser; import com.teamde...
Fri, 22 Jan, 2016 at 3:23 PM
Title Events
To get notifications when document's title has been changed use TitleListener as shown on the following example: import com.teamdev.jxbrowser.chromi...
Tue, 29 Dec, 2015 at 4:27 PM
Status Events
When user moves cursor over a link, Chromium engine displays its URL in status bar. JavaScript code can change text in status bar programmatically via windo...
Fri, 12 Feb, 2016 at 11:44 AM
Keyboard & Mouse Events
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. You can listen to Keyboard and Mouse ev...
Tue, 27 Aug, 2019 at 7:58 PM
Handling Keyboard Events
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. Using the BrowserView.setKeyEventsHandl...
Tue, 27 Aug, 2019 at 7:59 PM
Handling Mouse Events
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. Using the BrowserView.setMouseEventsHan...
Tue, 27 Aug, 2019 at 8:00 PM
Editor Commands
JxBrowser provides functionality that allows you to execute commands such as "Cut", "Copy", "Paste", "Undo", "R...
Sun, 10 Jan, 2016 at 3:56 PM
Drag & Drop
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. Since 6.0 version JxBrowser supports tw...
Tue, 27 Aug, 2019 at 8:01 PM
Content scaling
JxBrowser recognizes device scale factor that is used in environments with HiDPI displays and renders HTML content corresponding to that scale factor. JxBro...
Mon, 16 Jul, 2018 at 11:07 AM
Context Menu
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. By default JxBrowser doesn't displ...
Tue, 27 Aug, 2019 at 8:02 PM
JMenuBar
When you embed BrowserView component into Java Swing frame with menu bar, by default you can see that browser component overlays pop-up menu as shown on the...
Fri, 29 Jan, 2016 at 2:23 PM
JInternalFrame
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.BrowserType; import com.teamdev.jxbrowser.chromium.swing.BrowserV...
Fri, 25 Dec, 2015 at 5:38 PM
JTabbedPane
The example below demonstrates how to embed Swing BrowserView into JTabbedPane. The BrowserView can be embedded into JTabbedPane in both rendering modes: li...
Tue, 29 May, 2018 at 1:36 PM
JPanel
This example demonstrates how to create Browser instance, embed it into Swing BrowserView container, display it in JFrame and navigate to the "www.go...
Tue, 29 May, 2018 at 1:41 PM
Accelerated Lightweight Rendering
In JxBrowser 6.10 and higher there's an option that allows enabling accelerated lightweight rendering mode. This rendering mode has improved performanc...
Thu, 25 Apr, 2019 at 11:36 AM
Transparent Background
In JxBrowser 6.10 and higher, there's functionality that allows enabling support of transparent background on the web page. The following example demon...
Tue, 13 Dec, 2016 at 1:08 PM
Shortcuts
Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here. In Chromium, there are two types of sho...
Tue, 27 Aug, 2019 at 8:03 PM