[5423] in java-interest
Re: handling events: yes and no
daemon@ATHENA.MIT.EDU (John D. Kane)
Thu Feb 8 13:00:06 1996
From: "John D. Kane" <john@insightnews.com>
To: "guy.elliott" <guy.elliott@ac.com>,
"'java@java.sun.com'" <java@java.sun.com>,
"'java-interest@java.sun.com'" <java-interest@java.sun.com>,
"'jug@jug.org'" <jug@jug.org>
Date: Thu, 08 Feb 96 11:47:00 PST
You're right ... I am using Windows NT. I just wonder why my "homemade"
component passes out mouse events if (for example) the List doesn't. After
all, my own component is just the native Canvas class with some extra
functionality. Why would the native Canvas class register mouse events, but
the native List class not register them? Both classes are derived from the
same class, Component.
John
----------
From: guy.elliott
To: john d. kane
Cc: 'java-interest@java.sun.com'
Subject: Re: handling events: yes and no
Date: Wednesday, February 07, 1996 10:02AM
John,
I'm going to assume you are using the Win95/NT version of Java since I
believe
events should work properly in the Solaris versions.
In the Win95 version mouse events that are sent to native components are not
passed out properly. Our encounter with this problem occurred with
scrollbars,
they only pass the scroll events out when the mouse is released, so when
you're
dragging the thumb, the thumb moves with the mouse but your code can't
respond
until the mouse button is released. As far as I know there is no fix to
this,
we couldn't trap the event anywhere until the component sent them back out.
This bug is documented somewhere in the notes that came with one of the
releases. The same kind of thing used to happen with keyboard events also
but
that was fixed in Beta2. The mouse events are scheduled to be fixed in a
"future" release of Java but they don't say which one.
Hope this helps,
Guy
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com