Here you can find the source of columnAt(final JTable table, final Point p, final Class
public static <C extends Enum<C>> C columnAt(final JTable table, final Point p, final Class<C> columnClazz)
//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*/ }