title: How to use Ctrl+Z and Ctrl+Y with all Text Components?
body: <p>In fact i know how to implement using <kbd>CTRL</kbd>+<kbd>Z</kbd> (Undo) and <kbd>CTRL</kbd>+<kbd>Y</kbd> (Redo) with one JTextField. But i have hundreds of Text Components in my Swing application, so is there a way to apply this for all Text Components in my application, so when i click <kbd>CTRL</kbd>+<kbd>Z</kbd> in any Text Component it would undo the last entry in that Field ?</p>
  
  <p>I have tried to implement it in <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/EventQueue.html" rel="nofollow noreferrer">EventQueue</a>, but it did not work !</p>