Search within JavaFX
Register / Login
Win a copy of
TDD for a Shopping Website LiveProject
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
JavaFX GTK and rotate
Nick van Alst
posted 7 years ago
Number of slices to send:
Optional 'thank-you' note:
I'm have some trouble with javaFX.
my linux arm box won't work with eglfb for some reason. (still trying to figure that part out)
but if i force my
application with GTK it starts just fine.
most of the trasistions work, for example a simple fade.
But somehow when i do a rotate transition it goes wrong:
the image disappears as soon as i start it.
when the transistion is complete, it shows the image (rotated) at the top left of the screen.
When i rotate it back, it disappears again. and once complete it is back at the original position.
i tried 2 pieces of code's:
first: rotateLock = new RotateTransition(new Duration(500),imgLock);
Rotate rotationTransform = new Rotate(0, 79, 0);
and then with a Timeline.
Does anyone have any experience with this? or does the GTK platform simply not support these kinds of effects?
Everyone is a villain in someone else's story. Especially this devious tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
Boost this thread!
Processing... Please wait child window
rotate image java2d
How to change the dimensions of an image object
Insider's Guide to Mixing Swing and JavaFX