static int selectedTableRow(final JTable t) { ret t == null ? -1 : swing(func -> int { t.getSelectedRow() }); }