import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class AlwaysOnTopTest extends Application {

    @Override
    public void start(Stage stage) {
        stage.setAlwaysOnTop(true);
        stage.setTitle("AlwaysOnTopTest");

        Button button = new Button();
        button.setText("Print isAlwaysOnTop");

        button.setOnAction(e -> System.out.println("AlwaysOnTop: " + stage.isAlwaysOnTop()));

        Scene scene = new Scene(new StackPane(button), 600, 450);
        stage.setScene(scene);
        stage.show();
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Application.launch(args);
    }
    
}
