Need help with loading data - varying number of JPanels

Hello,

I'm having trouble loading information from my array of stuctures. Im reading data from a website into an array of Objects, and I only want to initialize however many JPanels are needed for the data I have, which is varying.

For example, the data Im reading in may have anywere from 3 to 20 soccer matches, each match in its own soccerGame Object. I only want to display as many matches as are stored in my array of soccerGame Objects.

I have tried to use the pre and post initialization fields in Netbeans, but they don't seem to do what I want.

Any suggestions?

Thanks!

[620 byte] By [jamis0na] at [2007-10-2 18:26:38]
# 1
[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url].Pick the appropriate Layout Manager. Every time you process a SoccerGame object you build a new panel and then add the panel to the GUI.
camickra at 2007-7-13 19:47:45 > top of Java-index,Desktop,Core GUI APIs...