I'm implementing the function with javaobject but there are same problems
B4X:
Private shadow as JavaObject
shadow.InitializeStatic("javafx.scene.effect.DropShadow")
shadow.RunMethod("setRadius", Array As Object("5"))
shadow.RunMethod("setOffsetX", Array As Object("3"))
shadow.RunMethod("setOffsetY", Array As Object("3"))
shadow.RunMethod("setColor", Array As Object("0, 0, 0"))
........
java.lang.RuntimeException: Method: setRadius not matched.
and also SetOffsetX ecc.
where I'm wrong?
Thanks
Drop Shadow Effect
To implement a drop shadow effect, use the DropShadow class. You can specify a color and an offset for the shadow of your text. In the TextEffects application, the drop shadow effect is applied to the red text and provides a three-pixel gray shadow. You can see the code in Example 15.
Example 15
DropShadow ds = new DropShadow();
ds.setOffsetY(3.0f);
ds.setColor(Color.color(0.4f, 0.4f, 0.4f));
Text t = new Text();
t.setEffect(ds);
t.setCache(true);
t.setX(10.0f);
t.setY(270.0f);
t.setFill(Color.RED);
t.setText("JavaFX drop shadow...");
t.setFont(Font.font(null, FontWeight.BOLD, 32));