How do you tile JInternalFrames?
Created May 4, 2012
Sandip Chitale
- 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.