Multiple choice

Which of the following argument is the third argument passed to the constructor of the FlowLayout?

  1. Int horizontalGap

  2. Int VerticalGap

  3. Int Alignment

  4. Int Rows

  5. Int Columns

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer, we can pass 3 arguments to the FlowLayout constructor. These 3 arguments are :-FlowLayout(int alignment, int horizontalgap, int verticalgap)Alignment:- it can be FlowLayout.LEFT, FlowLayout.RIGHT or FlowLayout.CENTERHorizontalgap : - it specifies the horizontal gap between the components.Verticalgap : - It specifies the vertical gap between the components.So the third argument is VerticalGao, so this answer is correct.