JDK-8111036 : Alert isn't shown in Windows
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-02-09
  • Updated: 2015-06-16
  • Resolved: 2011-05-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.0Resolved
Related Reports
Blocks :  
Duplicate :  
Description
Using the source code below, the button's action is never fired in Windows - the alert is not displayed.  Works fine on Mac OS X.


public class HelloButtonsJava extends Application {
    @Override
    public void start() {
        Button btn = new Button("Button");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            public void handle(ActionEvent actionEvent) {
                Alert.inform("Button Clicked");
            }
        });

        VBox vBox = new VBox();
        vBox.setPadding(new Insets(10, 10, 10, 10));
        vBox.getChildren().add(btn);

        Scene scene = new Scene(vBox, 400, 400);
        Stage stage = new Stage();
        stage.setScene(scene);
        stage.setVisible(true);
    }

    public static void main(String[] args) {
        Launcher.launch(HelloButtons.class, args);
    }
}

Comments
The existing Alert class is removed. A new feature request has been filed as RT-12643
04-05-2011

This issue may or may not be relevant depending on the resolution of the Alert class.
24-02-2011

This issue may or may not be relevant depending on the resolution of the Alert class.
24-02-2011

This issue may or may not be relevant depending on the resolution of the Alert class.
24-02-2011

If you put a print statement in the handle event you will see the action being called. However, on Windows the Alert isn't shown. Changing the summary to reflect this.
10-02-2011