Class SpreadSheet

java.lang.Object
  extended bySpreadSheet

public class SpreadSheet
extends java.lang.Object

Class SpreadSheet demonstrates a very rudimentary spreadsheet-like editor. The editor is designed as a gridbag of text fields. Tabbing between sheet cells is supported automatically by the gridbag. Details of gridbag layout are described at in the Java SDK documentation.


Constructor Summary
SpreadSheet()
           
 
Method Summary
protected static void layoutCells(javax.swing.JFrame frame)
          Layout the spread sheet cells in the grid bag.
protected static void layoutRow1(java.awt.GridBagLayout grid, java.awt.GridBagConstraints constraints, java.awt.Container pane)
          Layout the first row at gridbag row/column positions 0,0 through 0,2.
protected static void layoutRow2(java.awt.GridBagLayout grid, java.awt.GridBagConstraints constraints, java.awt.Container pane)
          Layout the second row at gridbag row/column positions 1,0 through 1,2.
static void main(java.lang.String[] args)
          Construct the spreadsheet gridbag and display it in a window; see code body comments for details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadSheet

public SpreadSheet()
Method Detail

main

public static void main(java.lang.String[] args)
Construct the spreadsheet gridbag and display it in a window; see code body comments for details.


layoutCells

protected static void layoutCells(javax.swing.JFrame frame)
Layout the spread sheet cells in the grid bag.


layoutRow1

protected static void layoutRow1(java.awt.GridBagLayout grid,
                                 java.awt.GridBagConstraints constraints,
                                 java.awt.Container pane)
Layout the first row at gridbag row/column positions 0,0 through 0,2.


layoutRow2

protected static void layoutRow2(java.awt.GridBagLayout grid,
                                 java.awt.GridBagConstraints constraints,
                                 java.awt.Container pane)
Layout the second row at gridbag row/column positions 1,0 through 1,2.