How do you tile JInternalFrames?

Sandip Chitale

  1. Take the squareroot of the number of internal frames.
  2. add one to the square root.
  3. assume a grid of that many rows and columns.
  4. Divide the size of a container into cells of right size.
  5. 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.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact