An Applet has its Layout Manager set to the default of FlowLayout. What code would be the correct to change to another Layout Manager?
A) setLayoutManager(new GridLayout() ) ;
B) setLayout(new GridLayout(2,2) ) ;
C) setGridLayout(2,2) ;
D) setBorderLayout() ;
Correct Answer:
Verified
Q6: Which of the following methods finds the
Q7: What is the disadvantage of Type-4 Native-Protocol
Q8: What is the preferred way to handle
Q9: Which component method is used to access
Q10: Which of the following creates a List
Q12: How do you change the current layout
Q13: Which of the following methods can be
Q14: State true or false
(i) JPanel is a
Q15: State true or false
(i) Java RMI supports
Q16: Match the following
(a) Datagram Socket (i) UDP
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents