// This macro demonstrates how to use the Table.setSelection() // Table.getSelectionStart() and Table.getSelectionEnd() // macro functions added in ImageJ 1.52k. Arr20 = Array.getSequence(20); Arr20 = Array.getSequence(20); Array.show(Arr20); Table.setSelection(5, 10, "Arr20"); waitForUser("selection was set to 5, 10"); selStart = Table.getSelectionStart("Arr20"); selEnd = Table.getSelectionEnd("Arr20"); showMessage("start = "+ selStart + " end = " + selEnd); Table.setSelection(-1, -1, "Arr20"); waitForUser("selection was set to -1, -1"); selStart = Table.getSelectionStart("Arr20"); selEnd = Table.getSelectionEnd("Arr20"); showMessage("start = "+ selStart + " end = " + selEnd);