Java Swing AWT Question:
Download Questions PDF

What are the different components that are used to show a container?

Swing AWT Interview Question
Swing AWT Interview Question

Answer:

There are few components that are used to show the container used to define the visual properties of it. The components are given below:
• The layout manager: it is the manager of all the layouts or the structure that automatically provide the functionality in between the components. This is the only manager that does that. It also provides the spacing between each component and provides support for it as well.
• Invisible components: This is used to create lightweight components that allow performing no user interface functionality but it provides the space in the graphical user interface. This component is contained or controlled by the BoxLayout.
• Empty borders: the space between the components can be affected by adding the empty borders to the components that are defined within the block. This uses the borders that are having no border at all like panels and labels.

Download Swing AWT Interview Questions And Answers PDF

Previous QuestionNext Question
What is the process of setting the layout manager?What is the function of Internal Frame in Swing?