Skip to content
Permalink
Browse files

Use OpenJfx Platform instead of com.sun

  • Loading branch information...
James-Khan committed Jun 1, 2019
1 parent efd1a55 commit fc14b9f2296b367206ed925c751b063c68218629
Showing with 2 additions and 3 deletions.
  1. +1 −1 build.gradle
  2. +1 −2 src/main/java/com/jayfella/jme/jfx/injme/JmeFxContainerImpl.java
@@ -10,7 +10,7 @@ javafx {
}

group 'com.jayfella'
version '1.1.0'
version '1.1.1'

sourceCompatibility = 11

@@ -23,7 +23,6 @@
import com.jme3.ui.Picture;
import com.jme3.util.BufferUtils;
import com.sun.glass.ui.Pixels;
import com.sun.javafx.application.PlatformImpl;
import com.sun.javafx.cursor.CursorFrame;
import com.sun.javafx.embed.AbstractEvents;
import com.sun.javafx.embed.EmbeddedSceneInterface;
@@ -645,7 +644,7 @@ public void move(final int positionX, final int positionY) {
}

private void initFx() {
PlatformImpl.startup(() -> {
Platform.startup(() -> {
switch (Pixels.getNativeFormat()) {
case Pixels.Format.BYTE_ARGB:
try {

0 comments on commit fc14b9f

Please sign in to comment.
You can’t perform that action at this time.