#JavaFX Rotating/Binding

1 messages · Page 1 of 1 (latest)

main fieldBOT
#

<@&987246487241105418> please have a look, thanks.

bleak garnet
#

well what is the black and red? are these panes? is the red pane or whatever a children of the black one?

viscid vault
#

they are two different rectangles

#

i want to they act as one rectangle

bleak garnet
#

what kind of pane are you using? you should ideally use stackpane in this case

#

and then I would just try to rotate the pane itself

viscid vault
#

i wont rotate pane, only bottom rectangle

#

lemme show you an example wait

bleak garnet
#

well whatever you are doing, you would group both of them in an pane and then rotate that pane

#

you might need to wrap it in an additional pane if there are more elements that shouldnt be rotated

viscid vault
#

but i think grouping will work lemme try

#

thx

#

@bleak garnet grouping is worked, but i couldnt find how to move the place of group.

bleak garnet
#

how to move the place of group.
wdym exactly? what is your current ui setup and what are you trying to do?

viscid vault
#

i tried to apply setScaleX but couldnt

bleak garnet
#

well that is some math logic in your specific code, you might not be able to use javafx's rotate functionality in this case
instead you need to do the math and logic for it yourself

viscid vault
#

i couldnt find it

bleak garnet
#

well I cant tell you without seeing your specific code 🤷‍♂️