A WebPanel is a simple container class. It provides space in which an application can place any components, including other WebPanels.WebComponents added to a WebPanel are arranged within the display area of the WebPanel by layout managers (WebFlowLayout, WebGridLayout etc.)

Preconfigured WebPanels are available as Custom Components, e.g. CTabbedPane or CTable

The default layout manager for a WebPanel is the WebFlowLayout manager.


Below you find an example of how to use a WebPanel. You can try this example online: http://www.innoopract.com/w4content/

Properties of the WebPanel can be easily set in the Property-Editor of the W4T Eclipse Perspective. This example shows how to set access different regions of a WebPanel programmatically. The code is located in the in the event handler section and executed when buttons or checkboxes are clicked.

The example WebPanel is named wplExample. For accessing the different regions so called constraints are used.

  private void doWbtAreaControlWebActionPerformed( WebEvent e ) throws Exception {
    String constraint = wslAreaControl.getValue();
    wplExample.remove( wlbPopulation );
    wplExample.add( wlbPopulation, constraint );
  private void doWcbVisibleControlWebItemStateChanged( WebEvent e ) throws Exception {
    boolean visible = wcbVisibleControl.isSelected();
    wplExample.setVisible( visible );

API documentation

The API documentation for WebPanel can be found here.