|

acm.gui
Class VPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--acm.gui.TablePanel
                                |
                                +--acm.gui.VPanel

public class VPanel extends TablePanel

This class represents a vertical TablePanel with a single column. It is used along with HPanel to assemble hierarchical collections of panels that can be partitioned into rows and columns.


   
Constructor Summary
VPanel()
Creates a new VPanel.
VPanel(int hgap, int vgap)
Creates a new VPanel with the specified hgap and vgap parameters, which specify the padding between elements.
   

Constructor Detail

public VPanel()

Creates a new VPanel. A VPanel uses a TableLayout manager with a single column.

 
Usage: VPanel vbox = new VPanel(); 
 

public VPanel(int hgap, int vgap)

Creates a new VPanel with the specified hgap and vgap parameters, which specify the padding between elements. For a VPanel, the hgap is used to assign space to the left and right of the column.

 
Usage: VPanel vbox = new VPanel(hgap, vgap); 
Parameters: 
hgap  The gap between columns
vgap  The gap between rows
 

|