I wanted to have a WebList with panels. So i created my own class that extends WebPanel and set that as the CellRenderer for the WebList. Now i wanted to have this behavior: When i resize the list, the panels should be horizontally also resized but vertically they should grow only according to the length of the text inside but not bigger then setMaximumHeight. That was what i wanted to do.
Right now, i achieve all of that with
- Code: Select all
contentPanel.setLayout(new JideBoxLayout(contentPanel, JideBoxLayout.Y_AXIS));
... except of the maximal height functionality, that doesnt work. The panels always grow with the text inside and do not have a maximal height.
I guess i could also achieve this by using MigLayout but i can't figure out how.