forked from dorkbox/SystemTray
Cleaned up comments w.r.t. JNA
This commit is contained in:
parent
925394fd2e
commit
4c3c167a06
@ -20,7 +20,6 @@ import dorkbox.systemTray.MenuEntry;
|
|||||||
import dorkbox.systemTray.SystemTray;
|
import dorkbox.systemTray.SystemTray;
|
||||||
import dorkbox.systemTray.SystemTrayMenuAction;
|
import dorkbox.systemTray.SystemTrayMenuAction;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,12 +34,7 @@ class TestTray {
|
|||||||
|
|
||||||
public static
|
public static
|
||||||
void main(String[] args) {
|
void main(String[] args) {
|
||||||
// ONLY if manually loading JNA jars.
|
// make sure JNA jar is on the classpath!
|
||||||
//
|
|
||||||
// Not necessary if using the official JNA downloaded from https://github.com/twall/jna AND THAT JAR is on the classpath
|
|
||||||
//
|
|
||||||
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
|
|
||||||
|
|
||||||
new TestTray();
|
new TestTray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ import javafx.scene.control.Button;
|
|||||||
import javafx.scene.layout.StackPane;
|
import javafx.scene.layout.StackPane;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,12 +44,7 @@ class TestTrayJavaFX extends Application {
|
|||||||
|
|
||||||
public static
|
public static
|
||||||
void main(String[] args) {
|
void main(String[] args) {
|
||||||
// ONLY if manually loading JNA jars.
|
// make sure JNA jar is on the classpath!
|
||||||
//
|
|
||||||
// Not necessary if using the official JNA downloaded from https://github.com/twall/jna AND THAT JAR is on the classpath
|
|
||||||
//
|
|
||||||
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
|
|
||||||
|
|
||||||
launch(TestTrayJavaFX.class);
|
launch(TestTrayJavaFX.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import org.eclipse.swt.widgets.Display;
|
|||||||
import org.eclipse.swt.widgets.Shell;
|
import org.eclipse.swt.widgets.Shell;
|
||||||
import org.eclipse.swt.widgets.Text;
|
import org.eclipse.swt.widgets.Text;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,10 +40,9 @@ class TestTraySwt {
|
|||||||
|
|
||||||
public static
|
public static
|
||||||
void main(String[] args) {
|
void main(String[] args) {
|
||||||
|
// make sure JNA jar is on the classpath!
|
||||||
System.setProperty("SWT_GTK3", "0"); // Necessary for us to work with SWT
|
System.setProperty("SWT_GTK3", "0"); // Necessary for us to work with SWT
|
||||||
|
|
||||||
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
|
|
||||||
|
|
||||||
new TestTraySwt();
|
new TestTraySwt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user