[1534] in java-interest
general mouseEnter / Tk style bindings
daemon@ATHENA.MIT.EDU (Scott D. Yelich)
Thu Sep 7 03:35:14 1995
Date: Wed, 6 Sep 95 22:28:31 MDT
From: scott@spy.org (Scott D. Yelich)
To: java-interest@java.sun.com
In-Reply-To: Your message at 22:26:42 on Wed, 6 September 95
Hello everyone. I'm new to java and I'm really enjoying learning the
language. I do have two questions, though... and please accept my
apology if these are repeats--
I'm interested in:
(1) an archive of *simple* java applets and programs (ie: < 10K w/ comments)
(2) a package that implements "widget" style objects...
It seems that java graphics are still very primitive. Is anyone
working on a "higher level" "widgets" type of package? In
particular, I would like to know when my mouse has entered a
graphic... and IMHO, Tk beats java hands down in this area!
Tk has code like:
$canvas bind all <Any-Enter> "scrollEnter $canvas"
$canvas bind all <Any-Leave> "scrollLeave $canvas"
bind $canvas <B2-Motion> "$canvas scan dragto %x %y"
Any complex graphic is immediately identified when it is under the
mouse. I have been told that it should be easy to do this in java, but
so far every example of coding has "cheated" using bounding
rectangles. This just doesn't cut it.
So, my question is: Is there an example of *simple* code out that
that allows for a complex graphic shape and also allows for a type of
"mouseEnter" binding for a graphics item? Also note that Tk has an
"overlap" function that lists all the graphics that a specific graphic
overlaps. Is there anything like this already coded in a java
package? If not, is anyone else missing this? Any interest in this?
Scott
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com