LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Find a Visible JFrame in a java application (https://www.linuxquestions.org/questions/programming-9/find-a-visible-jframe-in-a-java-application-505855/)

MRMadhav 11-29-2006 05:47 AM

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!


All times are GMT -5. The time now is 02:02 PM.