A Panel can act as Component as well as a Container. So one can use it to hold component and add it to other container as a component. Panels are useful for creating the Nested Containers.
The Border Layout lays out controls in a specific regions of the Container. In this example, we will create five components and then place them in five different regions of the Border Layout.
1. Introduction to Grid Layout In Java, we can arrange the controls in rows and columns using Grid Layout Manager. For example in the calculator, the buttons are formed in … Continue Reading AWT Grid Layout Manager Explained
[toc] 1. Introduction We all know that one can not access private members of a class outside. There is an alternative for this concept and we call the alternative as … Continue Reading Friend Class And Friend Function in C++
The list of parameters passed to the Constructor is called ‘Constructor Initializer List’. When we pass the parameters the List order is important. It is helpful for setting a constant data member as well as Reference members.