Multiple choice

Which of the following methods is present in the GroupLayout class in java?

  1. setVGap(int gap)

  2. setVGroup(GroupLayout.Group group)

  3. getLayoutAlignmentY(Container parent)

  4. minLayoutSize(Container parent)

  5. layoutSize(Container parent)

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

This is the correct choice. getLayoutAlignmentY(Container parent) method is present in the GroupLayout class. This method returns the alignment along the y-axis.