GridBagLayout Quick Start Albert Guo [email_address]
What is GridBagLayout ? <ul><li>GridBagLayout is the most complex and most flexible of the layout managers.  </li></ul><ul...
What is GridBagLayout ?
GridBagConstraints Class <ul><li>The magic of the layout manager is strictly controlled by the different GridBagConstraint...
Create a Add Job Duty Frame btnPanel includes save button and reset button 0 1 2 3 4 0 1 2 3
GridBagLayout & GridBagConstraints
Class Diagram
Sequence Diagram
Demo 0 1 2 3 0 1 2 3 4
Upcoming SlideShare
Loading in …5
×

GridBagLayout Quick Start

1,026 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,026
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

GridBagLayout Quick Start

  1. 1. GridBagLayout Quick Start Albert Guo [email_address]
  2. 2. What is GridBagLayout ? <ul><li>GridBagLayout is the most complex and most flexible of the layout managers. </li></ul><ul><li>With GridLayout, elements are arranged in a rectangular grid, and each element in the container is sized identically (where possible). </li></ul><ul><li>With GridBagLayout, elements can have different sizes and can occupy multiple rows or columns </li></ul><ul><li>Note </li></ul><ul><ul><li>The maximum capacity of a screen using GridBagLayout is 512 rows by 512 columns. This is specified by the protected MAXGRIDSIZE constant of the layout manager </li></ul></ul>
  3. 3. What is GridBagLayout ?
  4. 4. GridBagConstraints Class <ul><li>The magic of the layout manager is strictly controlled by the different GridBagConstraints objects passed in for each component added to the container. </li></ul><ul><li>Each specifies how to display a specific component. Unlike most other layout managers, which have a built-in idea about what to do with their display, the GridBagLayout is a blank slate. </li></ul><ul><li>The constraints attached to the components tell the layout manager how to build its display. </li></ul>
  5. 5.
  6. 6. Create a Add Job Duty Frame btnPanel includes save button and reset button 0 1 2 3 4 0 1 2 3
  7. 7. GridBagLayout & GridBagConstraints
  8. 8. Class Diagram
  9. 9. Sequence Diagram
  10. 10.
  11. 11.
  12. 12.
  13. 13.
  14. 14.
  15. 15.
  16. 16.
  17. 17. Demo 0 1 2 3 0 1 2 3 4

×