Using 'javafx' libraries in a 'vaadin'-project

Hello. Tell me please. If I have a javaFX project (space NetBeans IDE) that draws a rectangle and displays it on the screen like this:

import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
.....
Group root = new Group();
Scene scene = new Scene(root);
Rectangle MyRect = new Rectangle(200, 200);
root.getChildren().add(MyRect);

Is it possible to create the “Scene” area (from the javafx library) in the “vaadin” project to draw the objects from the javafx.scene.shape library on this area, and then display them in the browser?
Or in the browser I can display only the objects of the library com.vaadin.ui?

Nope, you can’t share JavaFx graphics objects on the browser directly like that (although it would be cool if you could - that would make a neat add-on!). I’m not very familiar with what you can do with JavaFx, but my guess would be that you would need some kind of JavaScript graphics library and/or SVG to do similar things in the browser. Maybe this thread will give you some ideas: https://vaadin.com/forum/thread/17089900

-Olli

Okay. Thank