Getting All Frames in a JDesktopPane Container

// To create a desktop, see Creating a JDesktopPane Container // Retrieve all internal frames JInternalFrame[] frames = desktop.getAllFrames(); for (int i=0; i<frames.length; i++) { // Get internal frame's title String title = frames[i].getTitle(); // Determine if the internal frame is visible boolean isVisible = frames[i].isVisible(); // Get other properties boolean isCloseable = frames[i].isClosable(); boolean isResizeable = frames[i].isResizable(); boolean isIconifiable = frames[i].isIconifiable(); boolean isIcon = frames[i].isIcon(); boolean isMaximizable = frames[i].isMaximizable(); boolean isSelected = frames[i].isSelected(); }

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.