Java AWT Tutorial
Java AWT Tutorial
We will write the code ourselves, you should know what kind of code the automatic tools build for you
some components act as containers for other components Example the component Window we have already used by creating a Frame
Because Frame extends Window every Frame is a Window but every Window is not necessarily a Frame
BorderLayout divides the window into 5 areas (North, South, East, West, Center)
Use the containers add method with a second parameter like the following:
BorderLayout.NORTH BorderLayout.SOUTH BorderLayout.EAST BorderLayout.WEST BorderLayout.CENTER