acm.gui
Class VPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by acm.gui.TablePanel
                      extended by 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.


 

Field Summary
 
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.
 
Method Summary
 

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