Skip to content

A simple demo project presenting a specialized implementation of javafx.scene.layout.FlowPane that allows content to be dynamically centered.

Notifications You must be signed in to change notification settings

WiktorPrzetacznik/javafx-itempane-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ItemPane demo

A simple demo project presenting a specialized implementation of javafx.scene.layout.FlowPane that allows content to be dynamically centered (unlike original FlowPane/TilePane). Core ItemPane class is located in itempanedemo.layout package.

How does it look like?

image

Notes

Tested on JDK 20 & JavaFX 20.

This implementation calculates items position dynamically based on itemWidth provided via constructor (250 px is chosen if not provided). That means, to ensure correct positioning, all items contained in ItemPane should be sized equally to itemWidth. Feel free to reimplement it.

About

A simple demo project presenting a specialized implementation of javafx.scene.layout.FlowPane that allows content to be dynamically centered.

Resources

Stars

Watchers

Forks

Languages