Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDesktopPane placement

I have a JDesktopPane and want to display JInternalFrames in a grid style without overlaying frames. The dymensions of the frames will vary so their location should be assigned dynamically. I could store the coordinates of the last placed frame but frames can be moved, minimized or closed.. Is their an easy way of placing internal frames in a tidy way? e.g., using a Layout?

like image 767
Shakur Avatar asked May 14 '26 06:05

Shakur


1 Answers

Here's an example that may offer some guidance. It uses setLocation() and an offset.

like image 109
trashgod Avatar answered May 16 '26 20:05

trashgod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!