I have several unrelated JFrames
opened in my app. And on app exit I should remember the preferences of all of them to restore them the same view they was before exit.
The problem is when these frames are located one above another, they should be restored in the same order. Another way the smaller frames
would not be visible under bigger ones.
QUESTION: How can I detect the deep location each of frames
in this case?
UPD: I detect this case by comparing the frames' location/size pairs
, but I still do not how to resolve my issue.
UPD2: Note: the several jframes ui
is not default state. One JFrame
shown by default, but user can use several if he want. My question is not about how to make single JFrame
, but how to operate with several ones
.