bdunkleysmith Active Member Licensed User Longtime User Nov 29, 2019 #1 Yes I know I should be using the Internal Designer, but I'm working with a legacy Scene Builder layout. I would like to programmatically adjust some of the "Transform" parameters of an AnchorPane which are available in Scene Builder, but not exposed in B4J: Specifically I would like to programmatically adjust Scale X, Scale Y and Translate Y. Is it possible?
Yes I know I should be using the Internal Designer, but I'm working with a legacy Scene Builder layout. I would like to programmatically adjust some of the "Transform" parameters of an AnchorPane which are available in Scene Builder, but not exposed in B4J: Specifically I would like to programmatically adjust Scale X, Scale Y and Translate Y. Is it possible?
Daestrum Expert Licensed User Longtime User Nov 29, 2019 #2 You should be able to use the JavaObject library to achieve what you want. Code: Dim anchorPaneJO as JavaObject = yourAnchorPane anchorPaneJO.RunMethod("SetScaleX",array(2.0d)) ' 2.0d as it wants a double ... anchorPaneJO.RunMethod("setTranslateY",array(100.0d)) ' translate it +100 Upvote 0
You should be able to use the JavaObject library to achieve what you want. Code: Dim anchorPaneJO as JavaObject = yourAnchorPane anchorPaneJO.RunMethod("SetScaleX",array(2.0d)) ' 2.0d as it wants a double ... anchorPaneJO.RunMethod("setTranslateY",array(100.0d)) ' translate it +100
bdunkleysmith Active Member Licensed User Longtime User Nov 29, 2019 #3 Thank you @Daestrum That technique achieves exactly what I wanted. Upvote 0