FileDocCategorySizeDatePackage
text11.javaAPI DocExample949Mon Mar 24 02:04:42 GMT 1997None

MyAL

public class MyAL extends Object implements ActionListener

Fields Summary
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

        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());
        }