문제

I would like to create something like this in JavaFX:

[Album overview in iTunes][1] (sorry can

The Panel with the song titles is expanded and collapsed by clicking on the album cover. The other albums are moved down when it's expanded and up again when collapsed.

What would be the most simple way to do this? I thought of using an Accordion, using the images as titles, but I'm not sure if it can be stylized in a way that it looks like this.

Since the icons should be realigned when the window size is increased, I'd like to use a Flow- or Tile Pane for the main layout. Animation would be nice-to-have, but is not absolutely necessary.

I'm grateful for any hint!

도움이 되었습니까?

해결책

I cannot think of a simple way to have the albums in the second row to move down. However, if you want a grid of albums and a pop-over that appears when the user clicks on the album, the ControlsFX library’s GridView and PopOver control may help you. Although the GridView example in the link above shows only images, you can embed a whole scene graph (the image icon of the album, the title label, and the artist name label) in each cell.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top