Java Swing Programming Question:

What method is used to specify a container's layout?

Answer:

The setLayout() method is used to specify a container's layout.

Read All 26 Java Swing Programming Questions
Previous QuestionNext Question
What is the preferred size of a component?Which containers use a FlowLayout as their default layout?