93949596979899100101102103
public void execute(String cmdLine) { text.setText(cmdLine + "\n" + text.getText()); } }); DDE.addActivationListener(new ActivationListener() { public void activate() { text.setText("Activation occurred\n" + text.getText()); frame.toFront(); } });