[4674] in java-interest
Re: Problem with handling events (killing windows in a menubar of a frame & WINDOW_DESTROY)
daemon@ATHENA.MIT.EDU (Sami Shaio)
Wed Jan 10 15:41:26 1996
Date: Wed, 10 Jan 1996 10:58:34 -0800
From: Sami.Shaio@Eng.Sun.COM (Sami Shaio)
To: tan@cdr.stanford.edu
Cc: java-interest@java.Eng.Sun.COM
|From tan@cdr.stanford.edu Wed Jan 10 01:40:46 1996
|Date: Wed, 10 Jan 1996 01:19:51 -0800
|From: Sian Tan <tan@cdr.stanford.edu>
|I'm trying to spruce up my user interface to have menuitem interaction.
|I'm using the method below to take care of mouse actions on the menubar
|of the frame. This works fine by itself. It kills the window. However,
|when I try to add the second code segment below into the same class, the
|window closes if I click the "close window" button on the window, but my
|menu items fail to function. What am I doing wrong here?
|
In your handleEvent method, return super.handleEvent(evt) instead of
false.
|And Sami Shaio, if and when you read this, my congratulations for
|producing a wonderful book. "Hooked on Java" really does the job.
|
Thanks!!
--sami
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com