8384858687888990919293
if (!undoStack.isEmpty()) { Command last_edge_action = undoStack.pop(); last_edge_action.undo(); c.add(last_edge_action); } c.execute(); undoStack.add(c); } textArea.setText(grid.toString()); errorLabel.setText(grid.checkGrid());