Blog

phone like scrollable listview with JavaFX

I guess all users of smartphones (Android, iPhone, ...) know the scrollable lists you have there. While working on the example application for EclipseCon North America I thought it might make my example application look cooler if I could have it such an list. After hacking the whole sunday I have an initial running version. Here's an example how to use it:

FlingPane pane = new FlingPane();
pane.setFlingDirection(FlingDirection.VERTICAL);
		
VBox box = new VBox();
		
for( int i = 0; i < 30; i++ ) {
  box.getChildren().add(createMailItem("Sender " + i, "Title " + 1, "Lorem ipsum lorem ipsum lorem ipsum lorem ipsum ..."));
}
		
pane.setContent(box);

and I've recorder a small video to see it in action: Video

published on
Previous
e(fx)clipse product logo - any designers around?