BeeSoft®
Since 1992
 

Content

 Welcome
 Products
       Abeona
       Gaia
             News
             Documentation
                   Introduction
                   Swing support
                         Components
                               JCalendar
                               Lazy tree loading
                               JTreeTable
                               Simple form
                               Form
                         Building from XML
                         Client / server
                   Server application
                   Validation
                   XML
                   Logging
                   Utilities
                   Launcher
             License
             Download
       Hephaistos
       JavaGantt
 Services
       Promote your software
 Contact Us
 Links
      
  GaiaI®
© 2012 BeeSoft ®
 

Form

The Form is a component to hold and layout components in one form. It uses java.awt.GridBagLayout as a default layout and instances of eu.beesoft.gaia.swing.form.CellConstraints as the component constraints (instead of the GridBagConstraints). Each inserted component has its border replaced by eu.beesoft.gaia.swing.form.EditableComponentBorder to show the user if component is editable. For editable components you can set the background color by method setEditableComponentBackground(Color) and border color by method setEditableComponentBorderColor(Color).

The Form instance has the ability to paint the horizontal and / or vertical lines around the component cells, if it is set in CellConstraints instance(s). CellConstraints is derived from GridBagConstraints and contains boolean variables for painting left border, top border, etc. This gives the "table" look to the form. The color of the cell borders can be set by method setCellBorderColor(Color).