System.out.println ("The current text is: " + e.getActionCommand());
if (e.getSource() instanceof TextField) {
TextField tf = (TextField)e.getSource();
StringBuffer sb = new StringBuffer (e.getActionCommand());
tf.setText (sb.reverse().toString());
}