|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSpreadSheet
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 |
public SpreadSheet()
Method Detail |
public static void main(java.lang.String[] args)
protected static void layoutCells(javax.swing.JFrame frame)
protected static void layoutRow1(java.awt.GridBagLayout grid, java.awt.GridBagConstraints constraints, java.awt.Container pane)
protected static void layoutRow2(java.awt.GridBagLayout grid, java.awt.GridBagConstraints constraints, java.awt.Container pane)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |