import java.awt.*; import java.awt.event.*; public class JavaControl { public Frame makeFrame() { return new Frame("Yo!"); } // Return a handler for window closing events. public Handler makeHandler() { return new Handler(); } } // A handler to process a request to close a window. class Handler extends WindowAdapter { public void windowClosing(WindowEvent e) { Window w = e.getWindow(); w.dispose(); } } |
Forward to MS Java/ActiveX Example: TestCtrl.pl
Back to MS Java/ActiveX Up to PerlInside section index Up to Perl Inside course index |
Perl Inside: PerlInside - 41
Copyright © 1999, Brian Jepson
|