Examples of JFXPanel


Examples of javafx.embed.swing.JFXPanel

    private static void initJavaFx() {
        //initialize java fx if exists
        System.setProperty("javafx.macosx.embedded", "true");
        try {
            // Creating a JFXPanel initializes JavaFX
            new JFXPanel();
            Platform.setImplicitExit(false);
            javaFxInit = true;
        } catch (UnsatisfiedLinkError | NoClassDefFoundError | Exception e) {
            //in case javafx not present
            final String msg = NbBundle.getMessage(Installer.class, "Installer.errorInitJavafx.msg");
View Full Code Here

Examples of javafx.embed.swing.JFXPanel

    private void setupFx() {
        // load the image
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                fxPanel = new JFXPanel();
                fxImageView = new ImageView();
                // resizes the image to have width of 100 while preserving the ratio and using
                // higher quality filtering method; this ImageView is also cached to
                // improve performance
                fxImageView.setPreserveRatio(true);
View Full Code Here

Examples of javafx.embed.swing.JFXPanel

    private void setupFx() {
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                videoComponent = new JFXPanel();
                mediaPane = new MediaPane();
                Scene fxScene = new Scene(mediaPane);
                videoComponent.setScene(fxScene);

                SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of javafx.embed.swing.JFXPanel

    } else {
      JPanel jpanel = (JPanel) context.get("javax.swing.JPanel");
     
      if( jpanel != null ) {
        BorderPane pane = new BorderPane();
        JFXPanel fxPanel = new JFXPanel();
        fxPanel.setScene(new Scene(pane));
        jpanel.add(fxPanel);
       
        return pane;
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.