-
Bug
-
Resolution: Fixed
-
P2
-
jfx11, jfx20, 8
-
b11
-
generic
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8316986 | jfx21.0.2 | Kevin Rushforth | P2 | Resolved | Fixed | b01 |
JDK-8317044 | jfx21.0.1 | Kevin Rushforth | P2 | Resolved | Fixed | b06 |
JDK-8317014 | jfx17.0.9 | Jose Pereda | P2 | Resolved | Fixed | b04 |
JDK-8316989 | 8u401 | Kevin Rushforth | P2 | Closed | Fixed | b01 |
os_x: 14.0 Beta
java: openjdk 20.0.2 2023-07-18
javafx: javafx-sdk-20.0.2
A DESCRIPTION OF THE PROBLEM :
Using a minimal JavaFX application (used from bug JDK-8283590) and starting it from the command line or eclipse shows the JavaFX window in the background. It needs two clicks into the window to bring the application to front.
This behavior is also described JDK-8283590, but it's not related to the "Secure Keyboard Entry" (which is turned off in the terminal and not available from eclipse).
Because this is not related to the "Secure Keyboard Entry" flag, this may be an new problem with ox_x 14.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use minimal JavaFX from JDK-8283590 and run it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Application window is in front.
ACTUAL -
Application window is not in front and needs two clicks to get activated
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class App extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
Scene scene = new Scene(new Pane());
stage.setTitle("App");
stage.setScene(scene);
stage.setWidth(100);
stage.setHeight(100);
stage.setX(0);
stage.setY(0);
stage.show();
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None known
FREQUENCY : always
- backported by
-
JDK-8316986 Application window not activated in macOS 14 Sonoma
- Resolved
-
JDK-8317014 Application window not activated in macOS 14 Sonoma
- Resolved
-
JDK-8317044 Application window not activated in macOS 14 Sonoma
- Resolved
-
JDK-8316989 Application window not activated in macOS 14 Sonoma
- Closed
- duplicates
-
JDK-8315807 Sonoma macOS beta: JavaFX applications don't open in the foreground
- Closed
- relates to
-
JDK-8283590 [macos] Application window not activated when run from terminal with Secure Keyboard Entry set
- Open
-
JDK-8233678 [macos 10.15] System menu bar does not work initially on macOS Catalina
- Resolved
-
JDK-8319066 Application window not always activated in macOS 14 Sonoma
- Resolved
-
JDK-8318129 [macos14] Assertion error messages when initializing AWT Toolkit from JavaFX app in macOS Sonoma
- Closed
- links to
-
Commit openjdk/jfx17u/7b3027a7
-
Commit openjdk/jfx21u/29afbbc6
-
Commit openjdk/jfx/f2dd4bdb
-
Review openjdk/jfx17u/164
-
Review openjdk/jfx21u/18
-
Review openjdk/jfx/1247