Answers

Question and Answer:

  Home  Swing AWT

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

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.

 144 views

More Questions for you: