Steve Cohen <[EMAIL PROTECTED]> writes:
> I am getting my feet wet with java-linux.
> As a first step, I am simply copying code from the disk included with
> the book
> "Java for C/C++ Programmers" by Michael C. DaConta.
> The first "Hello World" program worked okay but the second one,
> attached, does not.
> On my RedHat 5.0 systems (yes, I've upgraded glibc and ld) the dialog
> comes up but no keyboard input shows up. Any idea why?
Yep, your code is buggy ;-)
> public boolean handleEvent(Event evt) {
> if (evt.id == Event.ACTION_EVENT)
...
> }
> return true;
This should be:
return super.handleEvent(evt);
If you just do a 'return true' only ACTION_EVENTs will be handled.
> }
> }
Jürgen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802