jerome
jerome

Reputation: 2089

JavaFX - Display list of pictures

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

Answers (1)

Sergey Grinev
Sergey Grinev

Reputation: 34508

  1. You may create your own control by adding two cusomized Buttons and ImageView to a scene.

  2. 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

  3. 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

enter image description here

Upvotes: 1

Related Questions