Java JToolBar and JMenuBar
JToolBar allows us to manage all the elements in a group especially buttons with icons in a row or column.
JMenuBar class is used to show menu on window or in frame of JFrame. It may have several menus. We can add more menus under each other and can manage them easily.
Java BorderLayout
The BorderLayout is the default layout and it is used in JFrame and many more like JWindow, JDialog and JApplet It is used to set height, width, space. It is used to specify the areas like CENTER, EAST, NORTH, SOUTH and WEST.
Java ContentPane
ContentPane is in JFrame which can hold the components and these components fitted and positioned and call in JFrame.There are several ways to handle the content pane, but most of them fail to provide one basic requirement -- ability to set a border.
Program
Output (screenshots)





need an explanation for this answer? contact us directly to get an explanation for this answer