![]() |
The Java Developers Almanac 1.4 |
|
e567. 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();
}
e560. Setting the Icon for a Frame e561. Making a Frame Non-Resizable e562. Removing the Title Bar of a Frame e563. Setting the Bounds for a Maximized Frame e564. Iconifying and Maximizing a Frame e565. Hiding a Frame When Its Close Button Is Clicked e566. Exiting an Application When a Frame Is Closed e568. Determining When a Frame or Window Is Opened or Closed e569. Determining When a Frame or Window Is Iconized or Maximized
© 2002 Addison-Wesley. |