(int start, int stop)
| 1661 | |
| 1662 | |
| 1663 | public void setSelection(int start, int stop) { |
| 1664 | // make sure that a tool isn't asking for a bad location |
| 1665 | start = PApplet.constrain(start, 0, textarea.getDocumentLength()); |
| 1666 | stop = PApplet.constrain(stop, 0, textarea.getDocumentLength()); |
| 1667 | |
| 1668 | textarea.select(start, stop); |
| 1669 | } |
| 1670 | |
| 1671 | |
| 1672 | /** |
no test coverage detected