Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setValueAt(Object value, int row, int col) {
- boolean change = false;
- if (value != null) {
- values[row][col] = (String) value;
- String temp = (String) value;
- temp = temp.replaceAll(" ", "");
- String str = match(temp, row, col);
- if (!str.equals(strings[row][col])) {
- strings[row][col] = match(temp, row, col);
- change = true;
- }
- }
- if (change) {
- for (int i = 0; i < row; ++i) {
- for (int j = 0; j < columns; ++j) {
- setValueAt(values[i][j], i, j);
- }
- }
- }
- fireTableCellUpdated(row, col);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement