Solved

Determine Mouse Cursor Size

Posted on 2002-07-15
7
156 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
ID: 7154355
 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
ID: 7155964
I do know about the Cursor class, but there is nothing about the size.
0
 
LVL 9

Author Comment

by:yongsing
ID: 7179371
It seems that there is no way of doing that with Java 1.1. I shall delete this question then.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Expert Comment

by:girionis
ID: 7179506
 Have you tried using native code?
0
 
LVL 9

Author Comment

by:yongsing
ID: 7179592
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
ID: 7179619
 Yes it is more than ok if you delete it. Sorry I could not help :-(
0
 

Accepted Solution

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

Regards,
ComTech
CS @ EE
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why my table column Id is not passed to java object? 4 45
Tomcat: Unable to run tomcat service. 2 28
throw exception 21 66
Java 8 to Java 6 8 32
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

685 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