• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the difference between Grid and Gridbaglayout?

 
me sesil
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one help me.i'mn a begineer in this area.please explain me briefly.
thanx in advance.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GridLayout is a very simple layout manager that can arrange components in a grid of rows and columns. Every cell in the grid, and thus every component, is resized to be the same exact size.
GridBagLayout is much more complex, and much more flexible. It also arranges components in rows and columns, but individual components can span multiple rows or multiple columns and thus the components in the grid can vary in size.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!