![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e563. Setting the Bounds for a Maximized FrameBy default, when a frame is maximized, it is resized to cover the entire screen. This example demonstrates how to control the size and location of a frame when it is maximized:// Create frame Frame frame = new Frame(); // Determine location and size of a maximized frame int x = 100; int y = 100; int width = 300; int height = 300; Rectangle bounds = new Rectangle(x, y, width, height); // Set the maximized bounds frame.setMaximizedBounds(bounds);
e560. Setting the Icon for a Frame e561. Making a Frame Non-Resizable e562. Removing the Title Bar of a 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 e567. Getting All Created Frames in an Application 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. |