Please enable JavaScript.
Coggle requires JavaScript to display documents.
CHAPTER 1 (FRAME LOCATION (By default, a frame is displayed in the upper…
CHAPTER 1
FRAME LOCATION
By default, a frame is displayed in the upper-left
-
To display a frame at a specified location, use the
setLocation(x, y) method in the JFrame class or
setBounds(x, y, width, height).
-
frame at location (x, y).
-
-
- setDefaultCloseOperation()
-
-
-
-
-
-
-
-
-
-
WRITE A PANEL
-
-
-
mainFrame.setLayout(new GridLayout(3, 1));
-
-
-
-
-
-
-
-
a component in AWT that can contain
another components like buttons, text fields, labels etc.
-
-
-a top-level window with a title and a
border.
-can have a menu bar; it can be independently moved
and resized
- not have a menu bar
- to get some particular information from the user (input) or to
impart some particularly important information to the user (output).
small application that performs one specific task that runs within the scope of a larger program, often as a plug-in.
-
-
-
changes the visibility of the component, by default false.
-