I would like to show a list of panels containing components, i.e a checkbox, labels, buttons, all on the same horizontal line; each panel represents one set of components to display information for one item. I need to put the list of panels (number undetermined) inside a scrollpanel to fit within the main panel height.
I can't seem to find a solution for mixing scrollpanel and panels with components.
I'd like to get this result :
scrollpanel {
- checkbox | item1 | button1 | button1 | label1 | label1
- checkbox | item2 | button2 | button2 | label2 | label2
checkbox | item3 | button3 | button3 | label3 | label3
[ ... ]
}
There is a working example of what I have currently shown here : Groovy SwingBuilder : button to change the color of a panel
There, you can see there are 6 items, each one with their respective components relating to it. Now if I wanted to display 60 items instead of 6, the frame would expand to fit them but exceed the screen size.
I seems so obvious to me that kind of a "scrollpanel" would do the job, but I can't get it working, although I checked all examples on the Java tutorials and the related questions here.
tia. Michel