|

acm.gui
Class HPanel

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

public class HPanel extends TablePanel

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


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

Constructor Detail

public HPanel()

Creates a new HPanel. An HPanel uses a TableLayout manager with a single row.

 
Usage: HPanel hbox = new HPanel(); 
 

public HPanel(int hgap, int vgap)

Creates a new HPanel with the specified hgap and vgap parameters, which specify the padding between elements. For an HPanel, the vgap is used to assign space above and below the row.

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

|