use Win32::OLE;
$objJavaCtrl = new Win32::OLE("PerlInside.JavaControl") or
die "Couldn't create COM object: $!\n";
$f = $objJavaCtrl->makeFrame;
$f->setSize(200, 200);
$f->addWindowListener( $objJavaCtrl->makeHandler );
$f->show;
# Wait until the window stops being visible.
use Time::HiRes qw(usleep);
$microseconds = 10_000;
while (1) {
exit if !$f->isVisible;
usleep $microseconds;
} |
| Forward to MS Java/ActiveX Example: Demo
Back to MS Java/ActiveX Example: JavaControl.java Up to PerlInside section index Up to Perl Inside course index |
Perl Inside: PerlInside - 42
Copyright © 1999, Brian Jepson
|