I have several unrelated JFrames open in my application. And at the exit of the application, I must remember the preferences of all of them in order to restore them to the same appearance as before the exit.
The problem is that these frames are located one above the other, they must be restored in the same order. Another way: smaller frames will not be displayed under larger ones.
QUESTION: How can I determine the deep location in each of the frames in this case?
UPD: I detect this case by comparing frames' location/size pairs , but I still cannot solve the problem.
UPD2: Note. several jframes ui not standard. One JFrame displayed by default, but the user can use several if he wants . My question is not about how to make single JFrame , but how to operate with several ones .
source share