home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.text;
-
- import java.awt.Component;
- import java.awt.event.ActionEvent;
-
- public class DefaultEditorKit$InsertContentAction extends TextAction {
- public DefaultEditorKit$InsertContentAction() {
- super("insert-content");
- }
-
- public void actionPerformed(ActionEvent var1) {
- JTextComponent var2 = ((TextAction)this).getTextComponent(var1);
- if (var2 != null && var1 != null) {
- String var3 = var1.getActionCommand();
- if (var3 != null) {
- var2.replaceSelection(var3);
- return;
- }
-
- ((Component)var2).getToolkit().beep();
- }
-
- }
- }
-