Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaFX GTK and rotate  RSS feed

Nick van Alst
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 java 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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!