Package ucar.ui.table

Class TableAligner

  • All Implemented Interfaces:
    EventListener, TableColumnModelListener

    public class TableAligner
    extends Object
    implements TableColumnModelListener
    A listener that sets the alignment of cells in a JTable. Expected usage:
     JTable table = new JTable(...);
     TableAligner aligner = new TableAligner(table, SwingConstants.XXXX);
     table.getColumnModel().addColumnModelListener(aligner);