コード例 #1
0
 /** Redo the action, setting the AC text to the new text */
 @Override
 public void redo() {
   ac.setText(newText);
 }
コード例 #2
0
 /** Undo the action, setting the AC text to the old text */
 @Override
 public void undo() {
   ac.setText(oldText);
 }