super(text, rows, cols);
Keymap km = getKeymap();
// get the "Ctrl-A" key code
// and attach it to a selectAll() call for this component
km.addActionForKeyStroke(
KeyStroke.getKeyStroke('A", KeyEvent.CTRL_MASK, true),
new AbstractAction() {
public void actionPerformed(ActionEvent ae) {
SelectableTextArea.this.selectAll();
}
}
);