static S getSelectedColumn(JTable tbl, int col) { int row = tbl.getSelectedRow(); if (row >= 0 && row < tbl.getModel().getRowCount()) ret String.valueOf(tbl.getModel().getValueAt(row, col)); ret null; }