🎴 Flashcard Mode
Java AWT, Swing & Fundamentals
Card1 / 15
Mastered0
Review0
QuestionClick to flip
How many constructors are there for Layout manager FlowLayout?
AnswerClick to flip back
A
3
💡 Explanation:
This is the correct answer because there are only three constructors for FlowLayout. These are:- FlowLayout() :- create a default flowLayoutFlowLayout(int Alignment) :- creates a flowlayout with specified alignment, where alignment can take value, FlowLayout.LEFT, FlowLayout.LEFT, FlowLayout.LEFTFlowLayout(int alignment, int hgap, int vgap) :- same as second constructor with specified horizontal and vertical gap between the components.