The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.awt  [78 examples] > Frames  [11 examples]

e561. Making a Frame Non-Resizable

By default, a frame can be resized by the user. Use setResizable(false) to freeze a frame's size.
    Frame frame = new Frame();
    frame.setResizable(false);
    
    // Get the current resizable state
    boolean resizable = frame.isResizable();

 Related Examples
e559. Creating a Frame
e560. Setting the Icon for a Frame
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
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

See also: Colors    Components    Containers    Cursors    Drawing    Events    Focus    GridBagLayout    Images    Shapes    Simulating Events    Text    The Screen   


© 2002 Addison-Wesley.