Courses
Java
Home
Corporate
Consulting
Contact Us
Courses
Jobs
Custom Topics

Customize this course,
choose your topics

Building Your Course
Custom Order Page
Building Guidelines

Selectable Topics
Advanced Applets
Advanced AWT
Collections
CORBA
Custom Components
Drag'n Drop
Enterprise JavaBeans
Event Delegation
GridbagLayout
InfoBus
Inner Classes
Internationalization
Java 2 Overview
JavaBeans
JFC Overview
JSP (Java Server Pages)
JSP Tag Libraries (taglib)
JDBC
JNI
RMI
Security
Serialization
Servlets
Struts
Swing
WebServices Overview
XML

GridBagLayout

The GridBagLayout layout manager is a flexible, grid-based layout manager. If differs from GridLayout, in that it

  • Accomodates components' preferred sizes
  • Rows and columns may be unevenly sized
  • Components may occupy one or more grid cells
  • Cells may contain padding
Its advantage is that it is the most flexible of all the 1.0 layout managers. However, it is complex and can be hard to learn.

In this section, we'll make it easy to learn GridBagLayout. We'll give you plenty of examples, and show some tips in making it easy to use.

Objectives

  • Learn the GridBagLayout layout manager.
  • Understand and use Constraints

Specifications

  • Duration (total): 40 minutes
  • Duration of Exercises:
  • 20 minutes

Pre-requisites

If you are building a custom course, you will need to cover these topics before this topic can be presented:

In addition, material covered in this section requires attendees to know the following:
  • An understanding of GUI Layout and basic components. You should be able to use the following:
    • Layout managers - FlowLayout, BorderLayout, GridLayout
    • Components - Button, TextArea, TextField, TextComponent, Label, and Menus
    • Containers - Panel, Window, Frame, and Container
  • The ability to nest layout managers
  • Basic Java knowledge is assumed, including exception handling, threads, full use of all the language constructs, and familiarity with the core Java 1.1 APIs.
  • Those without these pre-requisites should consider one of our Ultimate Java Programming Workshops.

A table of contents of this module is available upon request.

Return to the Custom Order Page.

Copyright ©2007 by Petronio Technology Group, Inc. All rights reserved. Petronio, "Targeted Technology Training", "T3" and "Turning new technologies into your competitive advantage" are trademarks of Petronio Technology Group. All other trademarks are the properties of their respective companies.