Replaces the contents of the specified line, where 'index' must be greater than or equal to zero and less than the value returned by getLineCount().
(int index, String s)
| 1169 | must be greater than or equal to zero and less than |
| 1170 | the value returned by getLineCount(). */ |
| 1171 | public void setLine(int index, String s) { |
| 1172 | if (index<0 || index>=iRowCount) |
| 1173 | throw new IllegalArgumentException("index out of range: "+index); |
| 1174 | if (vData!=null) { |
| 1175 | vData.setElementAt(s.toCharArray(), index); |
| 1176 | tc.repaint(); |
| 1177 | } |
| 1178 | } |
| 1179 | |
| 1180 | /** Returns the index of the first selected line, or -1 |
| 1181 | if there is no slection. */ |
no test coverage detected