Basic and Advance Java Question:

What method is used to specify a container’s layout in Java Programming?

Java Interview Question
Java Interview Question

Answer:

The setLayout() method is used to specify a container’s layout in Java Programming.


Previous QuestionNext Question
What is the preferred size of a component in Java Programming?Which containers use a FlowLayout as their default layout in Java Programming?