Solved

User defined cursors

Posted on 1998-09-01
6
176 Views
Last Modified: 2010-03-30
I'm looking for a way to define my own mouse cursors, for example, for using the "Working in Background" windows' cursor (pointer + hourglass)
0
Comment
Question by:Phantomas090198
  • 4
  • 2
6 Comments
 

Author Comment

by:Phantomas090198
ID: 1223126
Edited text of question
0
 

Author Comment

by:Phantomas090198
ID: 1223127
Edited text of question
0
 
LVL 3

Accepted Solution

by:
mjenkins earned 50 total points
ID: 1223128
You can't do this until 1.2. In 1.2 you can set the Cursor to whatever you want by creating:

Toolkit.createCustomCursor(java.awt.Image, java.awt.Point,     java.lang.String)
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!

 

Author Comment

by:Phantomas090198
ID: 1223129
I need to be completely sure there is no possibility to do this in 1.1

How are you so sure?
0
 
LVL 3

Expert Comment

by:mjenkins
ID: 1223130
Do you know who Amy Fowler is? She works on the AWT team for Sun. If you look through the JavaSoft web site, you'll see her name prominently mentioned in anything to do with the AWT/Swing stuff. I've asked her about this before. Actually, I've been bugging her about it since 1.0.2 came out. Custom cursor support is in 1.2. If you want to use one of the predefined cursors, that's no problem use Component.setCursor().

The only way to affect the Cursor in 1.0.2 or 1.1.x is to make native calls to do so. THat would break portability and invalidate the code's use as an applet (if that is the case). Even as an application, it would be better to use the 1.2beta4 so that your code remains "100% Java" and therefore portable.

The 1.2 Java Plug-in shouldn't be too far behind the 1.2 release, so browser support for 1.2 should be right there.
0
 

Author Comment

by:Phantomas090198
ID: 1223131
Thank you very much for your time. Now I am REALLY convinced. You deserve your points.
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

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…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

730 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