Java AWT Question and Answers

17. What is the difference between Grid and GridbagLayout?
  In Grid layout the size of each grid is constant where as in GridbagLayout grid size can varied.
 
Your Name Your Email-ID
Your Answer
18. What is a layout manager?
 
  • A layout manager is an object that is used to organize components in a container.
 
Your Name Your Email-ID
Your Answer
19. Where the CardLayout is used?
 
  • CardLayout is used where we need to have a bunch of panel or frames one laying over another.
  • It is replaced by TabbedPane in Swing.
 
Your Name Your Email-ID
Your Answer
20. Which container may contain a menu bar?
  Frame
 
Your Name Your Email-ID
Your Answer
12345678910 Page 5 of 10