note 72451 rejected from ref.java by nlopess
| From: | nlopess@php.net | Date: | Fri, 19 Jan 2007 23:30:44 +0000 |
| Subject: | note 72451 rejected from ref.java by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121941@lists.php.net to get a copy of this message | ||
Note Submitter: user111 at example12 dot com
----
I wrote simple code with java integration.
But how i can attach onclick event to my button?
How to attach actionListener interface?....
<?php
$frame = new Java('java.awt.Frame', 'PHP');
$button = new Java('java.awt.Button', 'Hello Java World!');
$frame->add('North', $button);
$frame->validate();
$frame->pack();
$frame->visible = True;
$thread = new Java('java.lang.Thread');
$thread->run();
$thread->sleep(10000);
$frame->dispose();
?>