When I’m running through the results of my sqlite query, I would like to create HorizontalPanels in my VerticalPanel and populate the panel with Labels based on the query results. How might I create these panels and labels on the fly?
I was thinking mainPanel.add(new HorizontalPanel().add(new Label("my text"))); but that doesn’t work and I have multiple labels for each panel.
What’s a good way of doing the same basic task multiple times?
Adapt that to your specific needs, using the right method calls and class names.