Find a Visible JFrame in a java application
Hi, i wanted to know if there was a way to be able to get any visible jframe in a java application so as it can be used for modal dialogs etc... eg. A program may be having many JFrames and Modal JFrames are loaded from specific Parent JFrames but there is the case where a class does not have a specified parent JFrame which it will use to open a Modal JFrame. Thus if there was a way to get any visible JFrame in the application and use it for that purpose it would be great! For the time being there is a JFrame that is open most of the time and its the MainMenu, However it may happen that the MainMenu is not visible. Then i must be able to use any other JFrame open!
|