• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hiding images bound to sliders

 
pele travasso
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying a samll animation in JavaFx. I have 2 images bound to 2 sliders. using timelines i move those images close to each other from the end os the scene space. Now as the images appear close to each other, i need to replace one of the images. How do i get this done? is there a way in which i can hide one image and show another image, replace existing image or some other simple way to get this done?

Help awaited and will be appreciated ;)
 
Rob Spoor
Sheriff
Posts: 20837
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been a while since I last did anything with Java FX, but I'm sure Java FX has support for changing the visibility of widgets. There is a visible flag in javafx.scene.Node.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!