Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jgoodies.forms.tutorial.basics
Class CellAlignmentExample  view CellAlignmentExample download CellAlignmentExample.java

java.lang.Object
  extended bycom.jgoodies.forms.tutorial.basics.CellAlignmentExample

public final class CellAlignmentExample
extends java.lang.Object

Demonstrates how FormLayout applies the default column and row alignments to cells, and how to override the defaults.

Version:
$Revision: 1.9 $

Constructor Summary
CellAlignmentExample()
           
 
Method Summary
private  void addHorizontalButton(javax.swing.JPanel panel, int col, int row, CellConstraints.Alignment hAlignment)
           
private  void addVerticalButton(javax.swing.JPanel panel, int col, int row, CellConstraints.Alignment vAlignment)
           
private  javax.swing.JComponent buildHorizontalPanel()
           
 javax.swing.JComponent buildPanel()
           
private  javax.swing.JComponent buildVerticalPanel()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellAlignmentExample

public CellAlignmentExample()
Method Detail

main

public static void main(java.lang.String[] args)

buildPanel

public javax.swing.JComponent buildPanel()

buildHorizontalPanel

private javax.swing.JComponent buildHorizontalPanel()

buildVerticalPanel

private javax.swing.JComponent buildVerticalPanel()

addHorizontalButton

private void addHorizontalButton(javax.swing.JPanel panel,
                                 int col,
                                 int row,
                                 CellConstraints.Alignment hAlignment)

addVerticalButton

private void addVerticalButton(javax.swing.JPanel panel,
                               int col,
                               int row,
                               CellConstraints.Alignment vAlignment)