Q. 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();
πŸ’¬ Discuss
βœ… Correct Answer: (B) setLayout(new GridLayout(2,2));

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
283
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate