ui/src/main/java/ucar/nc2/ui/table/TableAligner.java
public static void installInAllColumns(JTable table, int alignment) {
        // We don't want to set up completely new cell renderers: rather, we want to use the existing ones but just
        // change their alignment.
        for (int colViewIndex = 0; colViewIndex < table.getColumnCount(); ++colViewIndex) {
            installInOneColumn(table, colViewIndex, alignment);
        }
    }
public static void installInAllColumns(JTable table, int alignment) {
        // We don't want to set up completely new cell renderers: rather, we want to use the existing ones but just
        // change their alignment.
        for (int colViewIndex = 0; colViewIndex < table.getColumnCount(); ++colViewIndex) {
            installInOneColumn(table, colViewIndex, alignment);
        }
    }
public static void installInAllColumns ( JTable table , int alignment ) { // We don't want to set up completely new cell renderers: rather, we want to use the existing ones but just // change their alignment. for ( int colViewIndex = 0 ; colViewIndex < table . getColumnCount ( ) ; ++ colViewIndex ) { installInOneColumn ( table , colViewIndex , alignment ) ; } }
Installs alignment decorators in all of the table's columns.

@param table  a table.
@param alignment  one of the following constants:
<ul>
<li>{@link SwingConstants#LEFT}</li>
<li>{@link SwingConstants#CENTER} (the default for image-only labels)</li>
<li>{@link SwingConstants#RIGHT}</li>
<li>{@link SwingConstants#LEADING} (the default for text-only labels)</li>
<li>{@link SwingConstants#TRAILING}</li>
</ul>
Installs alignment decorators in all of the table s columns .