import java.awt.*; import java.awt.event.*; public class BeanDemo { // Return a new Frame public Frame makeFrame() { return new Frame("Hi!"); } // 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 JavaBean Example: TestBean.pl
Back to JavaBeans and ActiveX Up to PerlInside section index Up to Perl Inside course index |
Perl Inside: PerlInside - 37
Copyright © 1999, Brian Jepson
|