Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Points to Note : Regarding GRIDBAG

 
vinit, budhiraja
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have few, Can you please share some more..
Also tell me if I am wrong.
1. It allows you to control individual cells.
2. To Use
Set Layout
Create Constraints
For Each component, set constraints, Add it to layout
3. A cell can span multiple rows or columns.
4. Fill : Specifies how component will fill cell.
5. Anchor tells alignment of components that don't fill up the cell.
6. It is possible to leave holes in the Grid using GridBag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic