GridBag Layout


GridBag Layout (not to be confused with Grid Layout) lets you set almost any layout you want using a complex set of constraints. You can create a GridBag layout one of the following three ways:

GridBag Layout is particularly useful for multi-platform Java applications, because it enables you to create a free-form layout that maintains a consistent appearance, even when the platform and look and feel change.


Contents Prev Next Index