aspose file tools
The moose likes Swing / AWT / SWT and the fly likes What is the difference between Grid and Gridbaglayout? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "What is the difference between Grid and Gridbaglayout? " Watch "What is the difference between Grid and Gridbaglayout? " New topic
Author

What is the difference between Grid and Gridbaglayout?

me sesil
Greenhorn

Joined: Dec 19, 2003
Posts: 18
any one help me.i'mn a begineer in this area.please explain me briefly.
thanx in advance.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24061
    
  13

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between Grid and Gridbaglayout?