Class TableLayout

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TableLayout extends JPanel
A lightweight container that arranges children using table-like row and cell semantics.
See Also:
  • Constructor Details

    • TableLayout

      public TableLayout()
      Creates an empty table layout backed by a GridBagLayout.
  • Method Details

    • getCellpadding

      public int getCellpadding()
      Returns the padding applied around each cell.
      Returns:
      the cell padding in pixels
    • setCellpadding

      public void setCellpadding(int cellpadding)
      Sets the padding applied around each cell.
      Parameters:
      cellpadding - the cell padding in pixels
    • addCell

      public void addCell(TableLayoutCell cell)
      Adds a new cell to the current grid
      Parameters:
      cell - the td component
    • nextRowIndex

      public int nextRowIndex()
      Creates a new row index for child tr tags
      Returns:
      nextRowIndex the row number