home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text;
-
- import java.awt.event.ActionEvent;
-
- class DefaultEditorKit$SelectAllAction extends TextAction {
- DefaultEditorKit$SelectAllAction() {
- super("select-all");
- }
-
- public void actionPerformed(ActionEvent var1) {
- JTextComponent var2 = ((TextAction)this).getTextComponent(var1);
- if (var2 != null) {
- Document var3 = var2.getDocument();
- var2.setCaretPosition(0);
- var2.moveCaretPosition(var3.getLength());
- }
-
- }
- }
-