All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CDF.CDFPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----CDF.CDFPanel

public class CDFPanel
extends JPanel
First Attempt at a reasonable layout based on a GridBagLayout (BEWARE!)
It is preferred to use a regular JPanel and CDF.PackedGridLayout since this will probably be deprecated soon

See Also:
PackedGridLayout

Constructor Index

 o CDFPanel()
Creates panel with 1 column and as many rows as needed.
 o CDFPanel(int, int)
Creates panel on grid of nrows x ncols, ONLY ONE of which may be zero.
 o CDFPanel(int, int, int, int)
Creates panel on grid of nrows x ncols, ONLY ONE of which may be zero, with given x and y padding.

Method Index

 o add(Component)
Method to add a component

Constructors

 o CDFPanel
 public CDFPanel()
Creates panel with 1 column and as many rows as needed. Default padding 10 pixels

 o CDFPanel
 public CDFPanel(int nrow,
                 int ncol)
Creates panel on grid of nrows x ncols, ONLY ONE of which may be zero. Uses 10 pixel padding

Parameters:
nrow - Number of rows desired - if 0, just as many as needed
ncol - Number of columns desired - if 0, just as many as needed
 o CDFPanel
 public CDFPanel(int nrow,
                 int ncol,
                 int xp,
                 int yp)
Creates panel on grid of nrows x ncols, ONLY ONE of which may be zero, with given x and y padding.

Parameters:
nrow - Number of rows desired - if 0, just as many as needed
ncol - Number of columns desired - if 0, just as many as needed
xp - Padding in x
yp - Padding in y

Methods

 o add
 public Component add(Component comp)
Method to add a component

Overrides:
add in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index