Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 884 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 884 Bytes

java-thrust

Thrust bindings for Java

How to use

Download latest Thrust binary release here and point to the thrustshell binary in application.conf

thrust_path="/Applications/ThrustShell.app/Contents/MacOS/ThrustShell"

Run file Main.java in test folder

public class Main {

	public static void main(String[] args) {
		Window.create("http://google.com").whenComplete((w, e) -> processWindow(w, e));
	}

	private static void processWindow(Window w, Throwable e) {
		w.show();
		w.maximize();
		w.focus(true);
		w.onBlur(x -> System.out.println("we were blurred"));
		w.onFocus(x -> System.out.println("we were focused"));
		w.onClosed(x ->{
			System.out.println("we were closed");
			System.exit(0);
		});
	}
}

Author

[email protected]