Reputation: 2089
i would like to display a list of picture in my view, and the list should refresh if i add new photo. I looked at the ListView which is bindable but i'm wondering if it is the component that i need to display pictures ans i don't want the scroll, i will instead have some link to next page and previous page. I'm looking for some advice from some people that have done this kind of work, on which component from JavaFx would be suitable for my job. Thanks.
Upvotes: 0
Views: 1603
Reputation: 34508
You may create your own control by adding two cusomized Button
s and ImageView
to a scene.
Or take a look at "Display Shelf" sample with similar functionality (copy-paste link to browser, cause StackOverflow doesn't understand spaces in links): http://download.oracle.com/otndocs/products/javafx/2.1/samples/Ensemble/index.html#SAMPLES/Graphics/Display Shelf
Or take a look at dev build of JavaFX 2.2 which has new Pagination
control which do exactly what you need and even going to support gestures to change pages: 2.2 dev preview
Upvotes: 1