Solved

Determine Mouse Cursor Size

Posted on 2002-07-15
7
153 Views
Last Modified: 2010-03-31
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
Comment
Question by:yongsing
  • 3
  • 3
7 Comments
 
LVL 35

Expert Comment

by:girionis
Comment Utility
 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
 
LVL 9

Author Comment

by:yongsing
Comment Utility
I do know about the Cursor class, but there is nothing about the size.
0
 
LVL 9

Author Comment

by:yongsing
Comment Utility
It seems that there is no way of doing that with Java 1.1. I shall delete this question then.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 35

Expert Comment

by:girionis
Comment Utility
 Have you tried using native code?
0
 
LVL 9

Author Comment

by:yongsing
Comment Utility
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
 
LVL 35

Expert Comment

by:girionis
Comment Utility
 Yes it is more than ok if you delete it. Sorry I could not help :-(
0
 

Accepted Solution

by:
ComTech earned 0 total points
Comment Utility
As requested in Community Support, this queston will be moved to PAQ, and points refunded.

Regards,
ComTech
CS @ EE
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now