-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
1.2.2
-
Fix Understood
-
generic
-
windows_xp
The test case attached to bug 6564923 includes a test case that attempts to
create a large cross-hair cursor. The code gets an "invalid hotspot" exception
even though the hotspot is defined to be at the center of the supplied image.
Examining the code in CustomCursor it appears that if the image is too large
then it is scaled to fit the platform's desired cursor size. Unfortunately,
the hotspot location is not modified when this happens so that a hotspot that
was formerly inside the source image may now be outside the scaled version of
the image.
If the cursor image needs to be scaled then the hotspot location should be
scaled accordingly to match the same relative location in the image.
create a large cross-hair cursor. The code gets an "invalid hotspot" exception
even though the hotspot is defined to be at the center of the supplied image.
Examining the code in CustomCursor it appears that if the image is too large
then it is scaled to fit the platform's desired cursor size. Unfortunately,
the hotspot location is not modified when this happens so that a hotspot that
was formerly inside the source image may now be outside the scaled version of
the image.
If the cursor image needs to be scaled then the hotspot location should be
scaled accordingly to match the same relative location in the image.
- relates to
-
JDK-6564923 Mouse cursor no longer supports transparency
- Closed