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 window.status property as well. JxBrowser API provides functionality that allows you to get notifications about status bar text changes. The following sample demonstrates how to use this functionality:

import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.LoggerProvider;
import com.teamdev.jxbrowser.chromium.events.StatusEvent;
import com.teamdev.jxbrowser.chromium.events.StatusListener;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;

import javax.swing.*;
import java.awt.*;
import java.util.logging.Level;

 * The sample demonstrates how to listen to status change events.
public class StatusListenerSample {
    public static void main(String[] args) {
        Browser browser = new Browser();
        BrowserView browserView = new BrowserView(browser);

        JFrame frame = new JFrame();
        frame.add(browserView, BorderLayout.CENTER);
        frame.setSize(800, 600);

        browser.addStatusListener(new StatusListener() {
            public void onStatusChange(StatusEvent event) {
                System.out.println("Text = " + event.getText());