FX2D Resizable Window Error

Oh yeah, either define them variables in the function or outside it:

PSurfaceFX surface;
Canvas canvas;
Scene scene;
Stage stage;

You’ll have to include the relevant imports too.

1 Like