Try to get javafx works on
If javafx works, I will considering designing a tiny UI on.
This commit is contained in:
1 parent
190ccab778
commit
f3265fb9f3
9 files changed
+56
-7
No files matched your search
@@ -3,12 +3,10 @@ package net.kdt.pojavlaunch;
|
||||
import java.io.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
import javafx.application.Application;
|
||||
|
||||
import org.lwjgl.glfw.CallbackBridge;
|
||||
/*
|
||||
import org.robovm.apple.foundation.*;
|
||||
import org.robovm.apple.uikit.*;
|
||||
import org.robovm.pods.dialog.*;
|
||||
*/
|
||||
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import net.kdt.pojavlaunch.value.*;
|
||||
@@ -26,6 +24,20 @@ public class PLaunchApp {
|
||||
LauncherPreferences.loadPreferences();
|
||||
}
|
||||
|
||||
public static void applicationDidFinishLaunching() {
|
||||
|
||||
@Override
|
||||
public boolean didFinishLaunching(UIApplication application,
|
||||
Thread launchThread = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
Application.launch(PLaunchJFXApp.class);
|
||||
}
|
||||
};
|
||||
launchThread.setDaemon(true);
|
||||
launchThread.start();
|
||||
}
|
||||
|
||||
public static void launchMinecraft() {
|
||||
System.out.println("Saving GLES context");
|
||||
JREUtils.saveGLContext();
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package net.kdt.plaunch;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.shape.Circle;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class PLaunchJFXApp extends Application {
|
||||
public void start(Stage stage) {
|
||||
Circle circ = new Circle(40, 40, 30);
|
||||
Group root = new Group(circ);
|
||||
Scene scene = new Scene(root, 400, 300);
|
||||
stage.setTitle("My JavaFX Application");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user