Swing Toolkit

To use Equo Chromium with the Swing toolkit, you will also need to override the default close operation so that browser processes are disposed of when you close the window [1].

import java.awt.BorderLayout;
import javax.swing.JFrame;
import com.equo.chromium.ChromiumBrowser;

public class Swing extends JFrame {

	Swing() {
		setDefaultCloseOperation(DISPOSE_ON_CLOSE); //[1]
		ChromiumBrowser browser = ChromiumBrowser.swing(getContentPane(), BorderLayout.CENTER,
				"https://docs.equo.dev/main/getting-started/introduction.html");
		setSize(800, 600);
		setVisible(true);
	}

	public static void main(String[] args) {
		new Swing();
	}
}