Common ways to 1.1 frame (1) frame ()
Create Untitled window, default layout is BorderLayout layout
(2) Frame (String s)
Create a window titled S, the default layout is BorderLayout layout
(3) public void setbounds (int a,int b,int width,int height)
The initial position of the setting window on the screen is (A, b), width is width, height is height
(4) public void setSize (int width,int height)
The size of the setting window is: high height, width is wide; default position is (0,0)
(5) public void setvisible (Boolean b)
Sets whether the window is visible and is not visible by default
(6) public void Setresizable (Boolean b)
Sets whether the size of the window can be adjusted by default
(7) public void Setextendedstate (int.)
Sets the extended state of the window, which takes the following class constants in the frame class: Maximized_horiz,maximized_vert,maximized_both
(8) public void Dispose ()
Revokes the current window and frees the resource used by the current window