Getting All Created Frames in an Application
// Retrieve all active frames
Frame[] frames = Frame.getFrames();
for (int i=0; i<frames.length; i++) {
// Get frame's title
String title = frames[i].getTitle();
// Determine if the frame is visible
boolean isVisible = frames[i].isVisible();
}
Post a comment