tags:

views:

110

answers:

2

What is the use of Container in Swing?

A: 

Well ... Containers are used to contain other widgets, and to help arrange them in a way that suits the design of the UI.

For instance, JPanel is a general-purpose container. Together with a LayoutManager, you can get many different layouts of widgets.

unwind
+3  A: 

A Swing Container is a component that holds or wraps-up other components. It aids with grouping related components together in the GUI. There are a lot of resources on the web that explain how to use Containers.

Andy White