Skip to content

DanielGarciaMandillo/java-thrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Java bindings for Thrust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages