































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Method Description JMenuBar getJMenuBar ( ) (^) Gets the menu for this frame. void pack ( ) (^) Adjusts the size of the frame to fit the components added to it. void remove (Component c) (^) Removes the specified component from the frame.
Method Description void remove (Component c) (^) Removes the specified
component from the frame. void setDefaultCloseOperation (^) Sets the action taken when
the user closes the frame. Always specify JFrame.EXIT ON CLOSE.
Method Description void setLocation (int x, int y)
Sets the x and y position of the frame on-screen. The top-left corner of the screen is 0, 0.
void setLocationRelativeTo (Component c)
Centers the frame on-screen if the parameter is null.
Method Description void setResizeable (boolean value)
Sets whether or not the size of the frame can be changed by the user. The default setting is true (the frame can be resized).
JPanel (boolean
void setLayout (LayoutManager layout)