Skip to content

Commit

Permalink
Use Util.runAndWait
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed Jan 23, 2024
1 parent b35b29b commit b4ff81a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.concurrent.TimeUnit;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.application.PlatformImpl;

import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
Expand All @@ -58,6 +57,7 @@
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;

import test.util.Util;
import static test.util.Util.TIMEOUT;

public class JFXPanelHiDPITest {
Expand Down Expand Up @@ -151,7 +151,7 @@ public MyApp() {
}

private void createScene(final JFXPanel fxPanel) {
PlatformImpl.runAndWait(() -> {
Util.runAndWait(() -> {
StackPane root = new StackPane();

Rectangle rect = new Rectangle(PANEL_WIDTH - 100, (double) PANEL_HEIGHT / 8);
Expand Down

0 comments on commit b4ff81a

Please sign in to comment.