8.8. Laying out Components

Layout plays an important role in designing User Interface for Applications. The layout support in AdventNet Bean Builder provides you the faster and efficient development of UI.  

 

Each container either has a layout manager or uses absolute positioning. All JPanel objects are initialized to use a Flow Layout. Content panes (the main containers in JApplet, JDialog, and JFrame objects) use Border Layout, by default.

 

The following Layouts are supported by the draw area provided with AdventNet Bean Builder.

 

 

Viewing the Current Layout

 

 

Setting/Changing the Layout

 

 

Setting Layout Properties

 

 

Resizing in Layout

 

Resizing is not allowed for all the layouts, i.e, only in some specific layouts, components are allowed to resize. The following are the layouts in which the resizing is allowed:

 



Copyright © 2011 ZOHO Corp. All Rights Reserved.