• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

Determine Mouse Cursor Size

I'm implementing a tooltip in my AWT applet. To avoid the mouse cursor from covering part of the tooltip, I need to know the size of the cursor so that I can position the tooltip properly. How do I determine the cursor's width and height? Thanks.
0
yongsing
Asked:
yongsing
  • 3
  • 3
1 Solution
 
girionisCommented:
 There is a Cursor class in the java.awt package defined. I am not sure if this will be helpful but you can take a look. It might come in handy.

  Hope it helps.
0
 
yongsingAuthor Commented:
I do know about the Cursor class, but there is nothing about the size.
0
 
yongsingAuthor Commented:
It seems that there is no way of doing that with Java 1.1. I shall delete this question then.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
girionisCommented:
 Have you tried using native code?
0
 
yongsingAuthor Commented:
No, and I think it's a lot of work for such a trivial problem. It's not really important so I shall not be looking into it anymore.

Is it ok with you if I delete this question? Thanks for trying to help though.
0
 
girionisCommented:
 Yes it is more than ok if you delete it. Sorry I could not help :-(
0
 
ComTechCommented:
As requested in Community Support, this queston will be moved to PAQ, and points refunded.

Regards,
ComTech
CS @ EE
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now