How do you tile JInternalFrames?
- Take the squareroot of the number of internal frames.
- add one to the square root.
- assume a grid of that many rows and columns.
- Divide the size of a container into cells of right size.
- Cycle thru the rows and columns using two for loops. Use setBounds(x, y, w, height) on each internal frame to set the location and size.