Here's an applet that might interest the readers of this group:
http://cognitrn.psych.indiana.edu/busey/Java/Change%20BlindnessApplet/
Classes/ChangeBlindness_Parameters.html
We use this in psychology to address a phenomenon that happens when you
introduce a change in an image. If you flash one version and then the
other the change jumps out, but if you put a short blank screen in
between the two the change is really hard to find (which is why this is
called change blindness).
We've made a version that blurs the images and lets you move the cursor
over the image to reveal a clear version. This lets us know where you
are looking for the change. When you've found it, click the button.
You'll see a version of the image that shows you where you searched.
I have two reasons for posting this. First, it is a nice example of how
wicked fast java can be in double buffer mode. The magic window
movement is very smooth and flicker free. Very impressive.
The second reason is that for some reason the applet doesn't work in
Safari. For some reason it never gets focus so the window doesn't move
around. We create an invisible cursor:
savedCursor = getCursor();
int[] pixels = new int[16 * 16];
Image image = Toolkit.getDefaultToolkit().createImage(
new MemoryImageSource(16, 16, pixels, 0, 16));
transparentCursor =
Toolkit.getDefaultToolkit().createCustomCursor
(image, new Point(0, 0), "invisiblecursor");
setCursor(transparentCursor);
which is supposed to be transparent when the cursor is over our applet
and we are tracking it, but be visible when the cursor is moved outside
our applet. Sometimes this works and sometimes it doesn't. So my two
questions are:
1) How do we change cursors when the pointer moves in and out of our
applet?
2) How can we force Safari to recognize that our pointer has moved into
our applet?
Thanks,
Tom
[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".