I am trying to decide on a strategy for displaying a grid-like array of GUI elements
Each element is a JPanel, and will have various subcomponents which will be updated by other parts of my program.
The elements need to be displayed in 9 x 9 array to the user. At various points columns need to be added to the array. There are also 2 such arrays in the program. Only 1 array will be visible to the user at a time. The arrays also need to be alternatively swapped at various points.
I would like to display the array in a JPanel as part of a larger layout.
Should I use GridLayout and add and remove elements or should I use JTable. I have never used JTable before? Can the elements in a JTable be JPanels?
Thanks,
Jonathan