Java JTable Column columnAt(final JTable table, final Point p, final Class columnClazz)

Here you can find the source of columnAt(final JTable table, final Point p, final Class columnClazz)

Description

column At

License

Open Source License

Declaration

public static <C extends Enum<C>> C columnAt(final JTable table,
            final Point p, final Class<C> columnClazz) 

Method Source Code

//package com.java2s;
import java.awt.Point;
import javax.swing.JTable;

public class Main {
    public static <C extends Enum<C>> C columnAt(final JTable table,
            final Point p, final Class<C> columnClazz) {
        return columnClazz.getEnumConstants()[table.columnAtPoint(p)];
    }/*from  w w w .ja v a2s. c  o m*/
}

Related

  1. addSpaceSelection(final JTable table, final int column)
  2. ajustarAnchoColumnas(JTable table)
  3. buscarDescripcion(KeyEvent e, JTable pTabla, JTextField pTextoDeBusqueda, int pColumna)
  4. cloneTableColumn(TableColumn c)
  5. cloneTableColumnModel(TableColumnModel m)
  6. convertColumnIndexToModel(TableColumnModel cm, int viewColumnIndex)
  7. convertColumnIndexToView(TableColumnModel model, int modelCol)
  8. convertSelectedColumnsToModelIndices(JTable table, int[] columns)
  9. createColumnNames(TableModel model)